[00:30] * mercutio didn't know that and has used vi forever [00:30] oh mine says that by default [00:30] i know what mode i'm in anyway [00:31] oh vim experts, does anyone know how to cut and paste code from elsewhere into vim without using "set noai" [00:31] and then changing back to "set ai" [00:46] mercutio: pastetoggle. [00:46] i've been googling [00:46] and running around in circles not getting anywhere [00:47] There's also a clever plugin that I cannot find right now. [00:47] some things say you can toggle with F2 or such [00:47] but i use F2 to open a new terminal [00:48] > googling [00:48] :h 'pastetoggle' [00:48] :set pastetoggle= " press F9 before pasting, press it again after. [00:49] hmm [00:49] yeah that works [00:49] i'd rather it be automagic [00:49] * mercutio adds it to vimrc anyway [00:50] There's a plugin that will detect clipboard start/end codes and automatically pastetoggle for you, but I can't find it now. [00:50] https://coderwall.com/p/if9mda/automatically-set-paste-mode-in-vim-when-pasting-in-insert-mode - this. [00:51] woot it works! [00:51] i tried it on itself [00:51] thanks so much [00:52] it had been bugging me for years [00:52] so nice! [01:51] holy. fuck. [01:51] That's what she said!! [01:51] hahahaa [01:51] that's awesome [01:51] I always manually did it with F11 [02:07] traceroute6 2001:550:0:1000::9a18:231d doesn't work on devio.us I guess its not connected to the entire IPv6 Internet, rather just the He.net connected subset [02:09] Not sure I understand [02:09] That's what she said!! [02:10] What do you mean it doesn't work? [02:10] Like, at all? [02:10] the command dies etc? [02:10] fwiw I can't traceroute that from my home connection [02:10] Oh, HE won't route to Cogent, is that what's happening? [02:11] *HE IPv6 tunnels [02:23] *** dwarren has quit IRC (Read error: Connection reset by peer) [02:23] *** dwarren has joined #arpnetworks [02:23] *** hive-mind has quit IRC (Ping timeout: 265 seconds) [02:23] *** jpalmer has quit IRC (Ping timeout: 265 seconds) [02:24] *** jpalmer has joined #arpnetworks [02:25] *** hive-mind has joined #arpnetworks [03:02] *** dj_goku has joined #arpnetworks [03:03] *** lteo_ has joined #arpnetworks [03:04] *** meingtsil has joined #arpnetworks [03:05] *** hive-mind has quit IRC (Disconnected by services) [03:06] *** hive-mind has joined #arpnetworks [03:07] *** grody has joined #arpnetworks [03:08] *** toddf has joined #arpnetworks [03:08] *** ChanServ sets mode: +o toddf [03:10] *** hycer- has joined #arpnetworks [03:10] *** jpalmer has quit IRC (*.net *.split) [03:10] *** ydorg has quit IRC (*.net *.split) [03:10] *** joepie91_ has quit IRC (*.net *.split) [03:10] *** toddf_ has quit IRC (*.net *.split) [03:10] *** meingtsla has quit IRC (*.net *.split) [03:10] *** dj_goku_ has quit IRC (*.net *.split) [03:10] *** hycer has quit IRC (*.net *.split) [03:10] *** trobotham-cloud has quit IRC (*.net *.split) [03:10] *** lteo has quit IRC (*.net *.split) [03:10] *** meingtsil is now known as meingtsla [03:11] *** joepie91_ has joined #arpnetworks [03:11] *** jpalmer has joined #arpnetworks [03:19] *** trobotham-cloud has joined #arpnetworks [08:58] *** hycer- is now known as hycer [09:39] *** milki_ is now known as milki [11:38] yea he.net / cogent ipv6 connectivity [11:53] What connectivity? :) [11:53] (Yeah, I realize that's exactly your point) [12:08] How come, any idea? Can't say as I've noticed any loss of ipv6 websites due to it... [12:08] wow, seems to be a loooong running peering dispte, google results back to 2009 [12:10] http://www.datacenterknowledge.com/archives/2009/10/22/peering-disputes-migrate-to-ipv6/ lol [13:18] so with cogent doing that what's to stop people going further? [13:19] like cogent could block russia because they don't like russians (say) [13:20] cogent customers should make lots of noise about it, but that's about all that can happen? [13:24] I'm surprised it's gone on as long as it has. I guess most customers/ISPs work around it with multiple peerings. [13:24] If they didn't have that option, then everybody would (logically) abandon Cogent. [13:25] But nobody does that, they just keep living with their redundant multiple peerings and work around the issues. [13:26] (or never even realize there's an issue, like me)_ [13:33] *** mnathani_ has quit IRC (Ping timeout: 250 seconds) [13:39] *** mnathani_ has joined #arpnetworks [13:43] whenever i check ebay tracking history they seem to send me an e-mail with updates. [13:44] i suspect it triggers updates when you look at it [13:47] i've heard multiple times that cogent is better than it used to be. [13:48] but i have my doubts/suspicions. "better" might just mean cheaper. [13:50] I've been hearing that too, specifically better quality links. But in light of this pathetic feud, they're back on my shit list. [14:00] I wonder if they include that in contracts; ie he.net connects to the IPv6 internet except for cogent and its single homed customers and vice versa [14:01] i don't think it belongs in contracts [14:04] More likely contracts state "we'll connect you to our peers" nice and generic [14:05] Can't be updating thousands of contacts every time they add or remove peers [14:05] removing a peer is fine as long as they have transit to reach said peer [14:05] this he.net issue creates ipv6 islands [14:06] mnathani_: things can fall back on ipv4 though [14:06] you can't actually be single homed on ipv6 yet and expect the internet to work normally [14:06] as both providers are striving to attain tier 1 status [14:06] like google has ipv6 - but they don't have ipv6 name servers [14:07] I guess you can as long as that single homed network is neither he.net nor cogent [14:07] google's name servers aren't even close to here. [14:07] it's a constant rather than random thing [14:08] so if you want to ssh to someone with ipv6 on cogent from he.net tunnel you can't. [14:08] like to get to individual servers. [14:08] that's one of the ipv6 use cases i hear the most atm that actually matters. [14:09] i mean having web sites and e-mail and so on with dual stack doesn't actually require ipv6.. [14:10] there are things like ipv6 reducing cgnat, .. with some mobile providers moving to cgnat to free up ip address space. [14:11] but again if you can't reach ipv6 destination then it'll just fallback [14:11] 464xlat seems promising for mobile as well [14:11] apparently nat is very common in china [14:11] rather 646xlat? [14:11] which explains how APNIC can get away with having so little IP's for so much population [14:16] *** lteo_ is now known as lteo [14:22] They do, actually 2001:4860:4860::8888 and 8844 https://developers.google.com/speed/public-dns/docs/using?hl=en 14:04:01 mercutio | like google has ipv6 - but they don't have ipv6 name servers [14:23] i mean for authorative [14:24] I think they have not yet worked out geolocation databases using IPv6 as yet [14:25] ahh mnathani_ [14:25] also a lot of broken IPv6 configs out there [14:28] That's the fun thing about tunelled ipv6 and geolcation - Google assumes I'm in the city of my POP and not 5 hours east. [14:29] google picks up my location from my phone [14:29] and shares it with desktop chrome [14:29] so it knows not only the city i'm in but suburb. [14:45] does your phone use IPv6 though? [14:46] Mine does :) [14:47] from the carrier, as in native/ [14:47] ? [14:47] or wifi tunnel [14:48] my home wifi [14:48] though I know of US carriers that have native/network ipv6 [14:48] (just not AT&T) [14:49] T-Mobile I believe [15:08] mnathani_: my phone would but i don't use ipv6 at home [15:08] and mobile doesn't do ipv6 here yet [15:09] doesn't android have buggy ipv6 support? [21:21] *** DaCa has quit IRC (Quit: WeeChat 1.0) [21:27] mercutio: what was that copy paste / vim thing from earlier? [21:28] 2015-10-23 00:47:13 @mike-burns There's a plugin that will detect clipboard start/end codes and automatically pastetoggle for you, but I can't find it now. [21:28] 2015-10-23 00:47:46 @mike-burns https://coderwall.com/p/if9mda/automatically-set-paste-mode-in-vim-when-pasting-in-insert-mode - this. [21:28] I read that, but couldn't make out what it did [21:29] also this didn't make sense: [04:48] <@up_the_irons> I always manually did it with F11 [21:30] * brycec shrugs [21:31] i can pastebin my .vimrc snippet [21:31] sure [21:31] I can look up logs, but I don't speak Vim beyond the very basics (insert/replace-one/replace-many/write/quit etc) [21:31] (I can do a little bit more than those too, but you get the idea) [21:32] http://pastebin.com/CbaZViEp [21:32] just append that to your vimrc [21:32] I guess I should start at the top : what problem is this trying to solve? [21:33] do you use set ai? [21:33] dont think so [21:33] then it may not help you so much :) [21:33] in vim type :set ai [21:33] then do tab some text [21:33] and press enter [21:33] and see how it stays at the same indentation level. [21:34] which is really useful when coding. [21:34] or for lots of things in general. [21:34] but then you have something like say that vimrc fragment which you want to paste in [21:34] and it starts indenting more and more with every line [21:35] I see the auto indent [21:35] so you can do ":set noai" and paste, and then do ":set ai" again [21:35] but that's a pita [21:35] so that vimrc snippet means whenever you paste it doesn't autoindent. [21:35] but your normal text can continue to be indented. [21:36] ok, I think I get it [21:36] it's bugged me so many times [21:36] but what text are you copying and pasting from I mean what program [21:36] is it another vim instance? [21:36] that when people were talking about things to do in vim i was keen if anyone knew how to fix it. [21:36] any program [21:37] like that pastebin web site [21:37] has to be text based though? [21:37] if you want to cut and paste the vimrc snippet into your vimrc [21:37] it'll auto indent crazy like normally [21:37] well yeah vim is for text [21:37] can you copy from gui to textbased vim and still expect that behavior? [21:37] from chrome and pastebin sure [21:38] but you have to copy text in not images :) [21:38] ofcourse [21:38] it's like magic :) [21:39] i love it so much [21:39] the other thing i love is when i found a way to do shared persitent history for zsh shells. [21:39] persistent [21:39] it really sucks when you have more than one shell open and you lose blobs of history [21:40] is there a bash equivalent to that? [21:40] not that i know of [21:40] but i haven't used bash in a very long time [21:43] don't really see the point in using bash when zsh is available [21:45] but zsh vs bash is kind of like vim vs emacs i suppose [21:45] I havent really tried zsh [21:45] bash is usually set as default on linux [21:46] zsh is smaller binary than bash, freeer license, better programmable completion, and lots of cool things you can do with it easily [21:46] zsh comes with osx by default [21:46] and is readily available. [21:46] if using ubuntu zsh will complete apt-get install by default. [21:47] whereas bash wouldn't by default last i knew [21:47] that's one of the easiest most visible ways to see the improved completion [21:47] you can also complete things like scp :) [21:47] although you need to use keys for that to work [21:48] err things like remote files with scp [21:48] so you can do scp server:somefile and complete to .tar.gz or whatever [21:48] does it open a connection in the background? [21:48] yeah [21:48] cool [21:48] it's really quick to close servers. [21:48] but really slow to far away ones :) [21:49] does zsh have to be set on remote and local server [21:49] ? [21:49] nope [21:49] just locally [21:49] you can just type zsh too [21:49] without changing your default shell [21:49] if you want to play [22:09] * brycec <3 the grml zsh config [22:09] And speaking of ssh/scp completion - it will complete hostnames from your ssh_config and known_hosts [22:10] https://grml.org/zsh/ so many perfect defaults IMO :) And it's what ArchLinux uses in the install iso, and have a package 'grml-zsh-config' too [22:11] It's how I got hooked on zsh. I'd been wanting to try it for awhile, and gave bare zsh a shot but was relatively "meh" on it. Then I was installing Arch one day and discovered that the shell was zsh and it looked nice and did nice things... And here I am now, devout zsh user 80% of the time. [22:12] i haven't done much config on mine [22:13] "prompt -p" is pretty cool [22:13] it's like thre are a few default prompt styles you can choose easily [22:14] i'm using "clint" [22:14] Mine's pretty much stock :D I have a .zshrc.pre with> [ "x${TERM:0:6}" = "xscreen" ] && NOPRECMD=1 < which makes my tmux life easier. And .zshrc that sets my HISTFILE/SIZE, bindkey -e, and the three lines to load the completion stuff. [22:14] which isn't ideal, but "good enough" [22:14] lol I'd forgotten all about prompt [22:15] I'm using, unsurprisingly, grml theme [22:15] heh i was just looking through it and bumped my history size up from 12,000 to 25,000 [22:15] (grml-chroot) [22:15] zsh will also tell you when you're in a git repo etc [22:15] I love zsh's history - shared between instances, and I can just start typing then up-arrow to complete from my history [22:15] and which branch you're following [22:16] Yes! Love that (and svn and cvs and hg...) Totally necessary for me to keep track of where I am and what I'm doing. [22:17] clint theme is spiffy, but way too much. I had a two-line prompt in bash for a long time, and I'm enjoying being back to a single useful line. I don't need the current pty or version info... [22:17] yeah i don't need that either [22:17] * brycec is tempted by the fade/fire themes though, they're so pretty... but too big. [22:17] but having the date, time, hostname is useful [22:17] and having a separate line from that stuff to having my commands. [22:18] like i said it's not ideal, but it's sufficient. and the colours don't bug me [22:18] gotta have the hostname. time/date, my wm or tmux take care of (though I sometimes miss knowing what time I started a command running - zsh does display the `time` after long running processes at least) [22:18] yeah for me i like to see when commands were [22:18] I like having my prompt go red if I'm root, that was something I first saw in Gentoo's default bashrc and I've carried it forward since then. [22:19] when i went from 1440p to 4k i went down in time size in wm [22:19] doesn't bother me :) [22:19] nothing else really got samller [22:19] smaller [22:20] hmm so i don't need pts, linux version, arch etc, zsh versino [22:20] and the histoy line number could move to that line [22:20] i don't need zsh/2 either [22:20] i wonder what that is [22:20] maybe i should try and figure out how to do prompts :) [22:21] is anyone here using redshift? [22:21] is command line options completion a feature of zsh? [22:21] mnathani_: yes [22:21] mnathani_: yes!! [22:21] it doesn't do everything though [22:21] mercutio: I used to use redshift, but meh [22:22] brycec: got annoying? [22:22] bash: zsh: command not found [22:22] http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html have fun with your $PROMPT and $RPROMPT [22:23] mnathani_: ubuntu? [22:23] apt-get install zsh [22:23] mercutio: kinda. Didn't really benefit me. [22:23] i find it nice. [22:23] centos, figured yum install zsh [22:23] but i use subtle settings. [22:23] oh centos is a bitch [22:23] but it's somewhere i think [22:24] centos had bash1 for ages [22:24] even if it has zsh it's probably old :) [22:24] not sure how old it is zsh: 4.3.11-4.el6.centos [22:24] oh new version of zsh added cut and paste thing so if you paste something into zsh it won't run it until you press enter [22:24] 5.1.1 is current [22:24] yeah i'm using 5.1.1 [22:25] that's what version added the cut+paste thing [22:25] but yeah old versions are still fine [22:25] [root@compaq ~]# zsh [22:25] [root@compaq]~# echo $SHELL [22:25] > /bin/bash [22:25] do I need to log out and log back in? [22:26] nope [22:26] it probably isn't setting SHELL [22:26] I am in tmux though [22:26] because it's not a login shell [22:26] try zsh -l [22:26] ok makes sense I guess [22:26] err [22:26] it's sudo that has -l isn't it [22:26] no output for zsh -l [22:26] try "prompt -p" [22:26] inside zsh [22:27] zsh: command not found: prompt [22:27] see [22:27] you're in zsh [22:27] autoload -U promptinit [22:27] promptinit [22:27] prompt -p [22:27] how do I get the command line options for ls though [22:27] bah you need a .zshrc :) [22:27] makes it easier :) [22:28] it should offer to help you [22:28] when you first login [22:28] maybe centos doesn't do that [22:28] oh-my-zsh [22:28] :P [22:28] sounds good [22:28] ohmyz.sh [22:28] ya [22:28] it is awesome [22:29] I have a freebsd vm here as well with zsh [22:29] freebsd will have old zsh too [22:29] probably 5.0.7? [22:30] zsh 5.1.1 (amd64-portbld-freebsd10.1 [22:30] or do i need to update :) [22:30] oh hmm [22:30] woot [22:30] the cut+paste thing is cool [22:30] from someone who's accidentally run something cut+pasted before [22:30] but not any time recently [22:31] i used to type echo and cut and paste :) [22:32] going to be a long night ;\ [22:35] this blinks theme seems ok [22:39] ya, I use bira myself [22:39] ok i gone back to my normal one already heh [22:40] but yeah it gives a nice starting point [22:42] mnathani_: what'd you think? [22:42] I tried the command line option completion and its not working [22:43] need to research zsh features some more [22:43] did you try oh-my-zsh [22:43] (or grml for that matter) [22:44] grml worked for completion [22:45] Cool :)