Dir structure cleanup
This commit is contained in:
17
zsh/zsh_aliases
Normal file
17
zsh/zsh_aliases
Normal 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* }
|
||||
Reference in New Issue
Block a user