diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-19 16:14:01 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-19 16:14:01 +1200 |
commit | 69c9f5a8d0164fff9a25fc732bea2c1d1270a4e5 (patch) | |
tree | 8c10189d10c68788de9ba2844e160eccf7bd541e /bash/bashrc.d | |
parent | Need to actually make LS/GREP_COLORS conditional (diff) | |
download | dotfiles-69c9f5a8d0164fff9a25fc732bea2c1d1270a4e5.tar.gz dotfiles-69c9f5a8d0164fff9a25fc732bea2c1d1270a4e5.zip |
Never mind, this was a bad idea
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r-- | bash/bashrc.d/gcc.bash | 19 | ||||
-rw-r--r-- | bash/bashrc.d/make.bash | 17 |
2 files changed, 0 insertions, 36 deletions
diff --git a/bash/bashrc.d/gcc.bash b/bash/bashrc.d/gcc.bash deleted file mode 100644 index 9db34cdc..00000000 --- a/bash/bashrc.d/gcc.bash +++ /dev/null @@ -1,19 +0,0 @@ -# Define function wrapper for gcc(1) with --color option if GCC_COLORS is set; -# checks that color is available in the terminal within the function -if [[ ! -n $GCC_COLORS ]] ; then - return -fi - -# Define function proper -gcc() { - local -i colors - colors=$( { - tput Co || tput colors - } 2>/dev/null ) - if ((colors >= 8)) ; then - command gcc --color=auto "$@" - else - command gcc "$@" - fi -} - diff --git a/bash/bashrc.d/make.bash b/bash/bashrc.d/make.bash index 397ba944..df4c0f56 100644 --- a/bash/bashrc.d/make.bash +++ b/bash/bashrc.d/make.bash @@ -1,20 +1,3 @@ -# Unset my GCC_COLORS vars when invoking make(1) if terminal doesn't have -# color; I have to do this because my wrapper function is ignored by the -# /bin/sh fork make(1) does, and gcc(1) always uses colors if the variable is -# set, as opposed to ls(1) and grep(1) which only do it if the --color option -# is specified appropriately. -make() { - local -i colors - colors=$( { - tput Co || tput colors - } 2>/dev/null ) - if ((colors >= 8)) ; then - command make "$@" - else - ( unset -v GCC_COLORS ; command make "$@" ) - fi -} - # Completion setup for Make, completing targets _make() { local word |