Please sign in to comment.
New blog post on scp tab completion in zsh
- Loading branch information...
Showing with 21 additions and 0 deletions.
|@@ -0,0 +1,21 @@|
|+title: "'Zsh – one more thing...'"|
|+date: 2012-05-25 13:33|
|+categories: [zsh, shell]|
|+Following on from my recent post on [ten great zsh tips](/2012/05/22/ten-great-zsh-tips/), here's an eleventh: you can tab-complete *remote paths* when using scp. How cool is that? Commands like scp will also tab-complete hostnames at the appropriate juncture, so you might issue a typical scp command something like this:|
|+ $ scp s[TAB]|
|+ sample.mp3 some_file.txt|
|+ $ scp sample.mp3 [TAB]|
|+ ahost.com anotherhost.com example.org|
|+ $ scp sample.mp3 ahost.com:[TAB]|
|+ Desktop/ Downloads/ Library/|
|+ $ scp sample.mp3 ahost.com:Desktop/[RETURN]|
|+If you're on a high-latency network connection then obviously completing remote paths will be a bit laggy, but it remains in my mind a pretty cool tip.|
|+Also, if you're not using it already you should check out [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) without delay. It's like giving your zsh a steroid shot. Seriously, just install it now.|