added zsh aliases. Moved other files but left symlinks for backwards compatibility.

This commit is contained in:
Kyle West
2012-01-30 23:46:41 -05:00
parent f8adde9e05
commit 228d89ec38
6 changed files with 173 additions and 140 deletions

17
zsh/zsh-aliases.zsh Normal file
View File

@@ -0,0 +1,17 @@
# Global aliases
alias -g ...='../..'
alias -g ....='../../..'
alias -g .....='../../../..'
alias -g C='| wc -l'
alias -g H='| head'
alias -g L="| less"
alias -g N="| /dev/null"
alias -g S='| sort'
alias -g G='| grep' # now you can do: ls foo G something
# Functions
#
# (f)ind by (n)ame
# usage: fn foo
# to find all files containing 'foo' in the name
function fn() { ls **/*$1* }