diff options
Diffstat (limited to 'bash/bashrc.d/ls.bash')
-rw-r--r-- | bash/bashrc.d/ls.bash | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/bash/bashrc.d/ls.bash b/bash/bashrc.d/ls.bash deleted file mode 100644 index 4b647163..00000000 --- a/bash/bashrc.d/ls.bash +++ /dev/null @@ -1,20 +0,0 @@ -# Store whether we have colors in a variable -declare -i colors -colors=$( { - tput Co || tput colors -} 2>/dev/null ) - -# Use LSOPTS to add some useful options to ls(1) calls if applicable; we use a -# function wrapper to do this -declare -a LSOPTS -if [[ -n $LS_COLORS ]] && ((colors >= 8)) ; then - LSOPTS[${#LSOPTS[@]}]='--color=auto' -fi - -# Done, unset helper var -unset -v colors - -# Define function proper -ls() { - command ls "${LSOPTS[@]}" "$@" -} |