Configuration for zsh

This commit is contained in:
Yan Pritzker
2011-11-22 19:02:36 -06:00
parent 5e851289e9
commit 0ebab432d3
4 changed files with 60 additions and 0 deletions

18
zsh_aliases Normal file
View File

@@ -0,0 +1,18 @@
# Aliases that only make sense in zsh
# Functions
#
# (f)ind by (n)ame
# usage: fn foo
# to find all files containing 'foo' in the name, the grep adds a pretty highlight
fn() { ls **/*$1* | grep $1 }
# 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'