Skip to content

Commit

Permalink
Adds completion to ssh hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
marektihkan committed Dec 27, 2013
1 parent ceb023c commit 9a92af7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions zsh/env
Expand Up @@ -2,3 +2,4 @@ export PATH=/usr/local/bin:$PATH


. ~/.dotfiles/zsh/packages/rbenv
. ~/.dotfiles/zsh/packages/ssh
2 changes: 2 additions & 0 deletions zsh/packages/ssh
@@ -0,0 +1,2 @@
# Make zsh know about hosts already accessed by SSH
zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'

0 comments on commit 9a92af7

Please sign in to comment.