diff zshrc @ 77:5cc3c67c9d3f

add a helper function for listing non-comment lines in a file, increase history size
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 21 Aug 2015 04:18:13 +0200
parents efe5f376e911
children a081e7a3977d
line wrap: on
line diff
--- 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