# HG changeset patch # User Dirk Olmes # Date 1440123493 -7200 # Node ID 5cc3c67c9d3ff6842826cb39c5a91faedd4bdf1f # Parent b41590f0a58758829fe86e8d24a9659cc8887dc3 add a helper function for listing non-comment lines in a file, increase history size diff -r b41590f0a587 -r 5cc3c67c9d3f zshrc --- a/zshrc Sun Aug 16 11:49:41 2015 +0200 +++ b/zshrc Fri Aug 21 04:18:13 2015 +0200 @@ -28,6 +28,7 @@ # custom functions/aliases that should work on all platforms cd() { builtin cd "$@"; print -D $PWD; } ff() { find $2 -print0 | xargs -0 grep $1 } +gve() { grep -ve '^#' $1 | uniq | less } hgrep() { history | grep $* } mcd() { mkdir $1; cd $1 } psg() { ps auxww | grep -v grep | grep -i "$@" } @@ -39,7 +40,7 @@ # no history handling for now ... or find a better way to save history per shell not across all shells export HISTFILE= -export HISTSIZE=100 +export HISTSIZE=500 # emulate tcsh's behaviour for forked processes: do not warn, do not kill when shell is closed setopt nohup