Mercurial > hg > zsh-env
comparison zshrc @ 162:0bd8976bd5fb
add default aliases for gk and removeKernel
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 09 Jan 2020 13:03:20 +0100 |
parents | 55466fa02e0a |
children | 201c8ca43ab1 |
comparison
equal
deleted
inserted
replaced
161:4500455b2375 | 162:0bd8976bd5fb |
---|---|
29 compinit -u | 29 compinit -u |
30 | 30 |
31 # custom functions/aliases that should work on all platforms | 31 # custom functions/aliases that should work on all platforms |
32 cd() { builtin cd "$@"; print -D $PWD; } | 32 cd() { builtin cd "$@"; print -D $PWD; } |
33 ff() { find $2 -print0 | xargs -0 grep $1 } | 33 ff() { find $2 -print0 | xargs -0 grep $1 } |
34 alias gk="$HOME/.zsh-env/gk.sh" | |
34 gve() { grep -ve '^#' $1 | uniq | less } | 35 gve() { grep -ve '^#' $1 | uniq | less } |
35 hgrep() { history | grep $* } | 36 hgrep() { history | grep $* } |
36 mcd() { mkdir $1; cd $1 } | 37 mcd() { mkdir $1; cd $1 } |
37 psg() { ps auxww | grep -v grep | grep -i "$@" } | 38 psg() { ps auxww | grep -v grep | grep -i "$@" } |
38 alias pd=pushd | 39 alias pd=pushd |
39 alias history="history 1" | 40 alias history="history 1" |
41 alias removeKernel="$HOME/.zsh-env/removeKernel" | |
40 alias sl='screen -ls' | 42 alias sl='screen -ls' |
41 alias sn='screen -S' | 43 alias sn='screen -S' |
42 alias sr='screen -r' | 44 alias sr='screen -r' |
43 alias suod=sudo | 45 alias suod=sudo |
44 alias ta="tmux attach -t" | 46 alias ta="tmux attach -t" |