Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New blog post on scp tab completion in zsh

  • Loading branch information...
commit c8656bc29a9a222059a7ef6ebcd59b35475b4d4c 1 parent 686e623
Simon Whitaker authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 source/_posts/2012-05-25-zsh-one-more-thing.markdown
View
21 source/_posts/2012-05-25-zsh-one-more-thing.markdown
@@ -0,0 +1,21 @@
+---
+layout: post
+title: "'Zsh – one more thing...'"
+date: 2012-05-25 13:33
+comments: true
+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.
Please sign in to comment.
Something went wrong with that request. Please try again.