dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 4a25948680a1d8b68f3d20b1210c63fad9cddb6a
parent a8e9e325b90e520a447ca55b53f252a95e9aeb68
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Wed,  6 May 2015 10:04:36 +0200

add cgrep for coloring matching strings

Diffstat:
M.zshrc | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/.zshrc b/.zshrc @@ -49,6 +49,7 @@ fi function lt() { ls -ltrsa "$@" | tail -n $(( $LINES - 10 )); } function lT() { ls -ltrsa "$@" | head -n $(( $LINES - 9 )); } function psgrep() { ps axuf | grep -v grep | grep "$@" -i --color=auto; } +function cgrep() { egrep --color -i "$@|$"; } function fname() { find . -iname "*$@*"; } function sayfile() { festival --tts $@; } function tnew { tmux new-session -As `basename $PWD` } @@ -179,3 +180,7 @@ fi [ -f $HOME/.locale ] && $HOME/.locale source ~/.tmuxinator/tmuxinator.zsh + + +source ~/.xsh +