From: Mike Frysinger Date: Tue, 31 Aug 2010 05:04:37 +0000 (-0400) Subject: dont set color aliases for dumb terminals X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=77ee95d3e1ed9573b89336cf107979050ba88eb2;p=home.git dont set color aliases for dumb terminals --- diff --git a/.profile.d/aliases.sh b/.profile.d/aliases.sh index dae0d08..caa15ef 100644 --- a/.profile.d/aliases.sh +++ b/.profile.d/aliases.sh @@ -9,10 +9,8 @@ alias eclipse='eclipse-3.2 -vmargs -Xmx512m' alias g='git' alias gdb='gdb --quiet' alias gdbtui='gdbtui --quiet' -alias grep='grep --colour=auto' alias nohist='export HISTFILE=/dev/null' alias kpdf='okular' -alias ls='ls --color=auto' alias lynx='lynx -nopause -accept_all_cookies -use_mouse' alias minicom='minicom -w -c on' alias nslookup='nslookup -sil' @@ -23,6 +21,11 @@ alias s='aspell -a' ss() { aspell -a <<<"$*"; } alias xine='xine -l' +if [[ ${TERM} != "dumb" ]] ; then + alias grep='grep --colour=auto' + alias ls='ls --color=auto' +fi + grep-svn() { find '(' -wholename '*/.svn' -prune -o -type f -print0 ')' | xargs -0 grep "$@" ; } scrub_patch() {