Dir structure cleanup

This commit is contained in:
yan
2011-12-07 02:48:00 -08:00
committed by Yan Pritzker
parent 13a5ac829b
commit f82daf5aec
4 changed files with 7 additions and 5 deletions

17
zsh/zsh_aliases 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* }