Mercurial > hg > zsh-env
comparison zshrc @ 51:c509ce04abad
better history handling
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Wed, 13 Aug 2014 17:05:52 +0200 |
parents | 9cc72008cf08 |
children | 93e011f2a836 |
comparison
equal
deleted
inserted
replaced
50:d7dbed316e60 | 51:c509ce04abad |
---|---|
30 ff() { find $2 -print0 | xargs -0 grep $1 } | 30 ff() { find $2 -print0 | xargs -0 grep $1 } |
31 hgrep() { history | grep $* } | 31 hgrep() { history | grep $* } |
32 mcd() { mkdir $1; cd $1 } | 32 mcd() { mkdir $1; cd $1 } |
33 psg() { ps auxww | grep -v grep | grep -i "$@" } | 33 psg() { ps auxww | grep -v grep | grep -i "$@" } |
34 alias pd=pushd | 34 alias pd=pushd |
35 alias history="history 1" | |
35 | 36 |
36 # no history handling for now ... or find a better way to save history per shell not across all shells | 37 # no history handling for now ... or find a better way to save history per shell not across all shells |
37 export HISTFILE= | 38 export HISTFILE= |
39 export HISTSIZE=100 | |
38 | 40 |
39 # emulate tcsh's behaviour for forked processes: do not warn, do not kill when shell is closed | 41 # emulate tcsh's behaviour for forked processes: do not warn, do not kill when shell is closed |
40 setopt nohup | 42 setopt nohup |
41 setopt no_check_jobs | 43 setopt no_check_jobs |
42 | 44 |