Switch the directory with the wim key-binding

This commit is contained in:
MartyJiang 2014-12-07 10:35:25 +08:00
commit 2e136e574d

View file

@ -26,6 +26,11 @@ alias ...='cd ../../'
alias ....='cd ../../../' alias ....='cd ../../../'
alias .....='cd ../../../../' alias .....='cd ../../../../'
# Switch the directory with the vim key-binding
alias k='cd ../'
alias 2k='cd ../../'
alias 3k='cd ../../../'
# Command line head / tail shortcuts # Command line head / tail shortcuts
alias -g H='| head' alias -g H='| head'
alias -g T='| tail' alias -g T='| tail'
@ -89,4 +94,3 @@ fi
# Make zsh know about hosts already accessed by SSH # 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)"}%%[# ]*}//,/ })' zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'