]> git.wh0rd.org - home.git/commitdiff
dont set color aliases for dumb terminals
authorMike Frysinger <vapier@gentoo.org>
Tue, 31 Aug 2010 05:04:37 +0000 (01:04 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:36 +0000 (15:36 -0400)
.profile.d/aliases.sh

index dae0d0829ac3405c086f24a115e9a24531508f37..caa15ef6021d2846ff5c93fd310b171f459587e0 100644 (file)
@@ -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() {