From 77ee95d3e1ed9573b89336cf107979050ba88eb2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 31 Aug 2010 01:04:37 -0400 Subject: [PATCH] dont set color aliases for dumb terminals --- .profile.d/aliases.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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() { -- 2.39.5