comparison zshrc @ 29:8d30bd0d3a50

provide a shortcut alias for pushd
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 24 Aug 2012 06:30:28 +0200
parents ee88f708d3ce
children 2f93381e4ed8
comparison
equal deleted inserted replaced
28:8f29a32fcdcb 29:8d30bd0d3a50
16 fi 16 fi
17 if [ "`alias | grep 'lsa='`" != "" ]; then 17 if [ "`alias | grep 'lsa='`" != "" ]; then
18 unalias lsa 18 unalias lsa
19 fi 19 fi
20 20
21 # custom function that should work on all platforms 21 # custom functions/aliases that should work on all platforms
22 cd() { builtin cd "$@"; print -D $PWD; } 22 cd() { builtin cd "$@"; print -D $PWD; }
23 ff() { find $2 -print0 | xargs -0 grep $1 } 23 ff() { find $2 -print0 | xargs -0 grep $1 }
24 hgrep() { history | grep $* } 24 hgrep() { history | grep $* }
25 mcd() { mkdir $1; cd $1 } 25 mcd() { mkdir $1; cd $1 }
26 psg() { ps auxww | grep -v grep | grep -i "$@" } 26 psg() { ps auxww | grep -v grep | grep -i "$@" }
27 alias pd=pushd
27 28
28 # no history handling for now ... or find a better way to save history per shell not across all shells 29 # no history handling for now ... or find a better way to save history per shell not across all shells
29 export HISTFILE= 30 export HISTFILE=
30 31
31 # emulate tcsh's behaviour for forked processes: do not warn, do not kill when shell is closed 32 # emulate tcsh's behaviour for forked processes: do not warn, do not kill when shell is closed