Browse files

New blog post on scp tab completion in zsh

  • Loading branch information...
1 parent 686e623 commit c8656bc29a9a222059a7ef6ebcd59b35475b4d4c Simon Whitaker committed May 25, 2012
Showing with 21 additions and 0 deletions.
  1. +21 −0 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]
+ $ scp sample.mp3[TAB]
+ Desktop/ Downloads/ Library/
+ $ scp sample.mp3[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]( without delay. It's like giving your zsh a steroid shot. Seriously, just install it now.

0 comments on commit c8656bc

Please sign in to comment.