# this file is sourced by .bashrc and .zshrc

# path setup
source ~/.shell/path-edit.sh
path_front ~/bin /usr/local/bin
path_back /sbin /bin /usr/sbin /usr/bin

# aliases
source ~/.shell/aliases.sh

# enable ls colors
if ls --color=auto 2> /dev/null; then
    alias ls="ls --color=auto"
else
    export CLICOLOR=1
fi

# source everything else
source ~/.shell/local.sh

# this file is sourced by .bashrc and .zshrc

# path setup
source ~/.shell/path-edit.sh
path_front ~/bin /usr/local/bin
path_back /sbin /bin /usr/sbin /usr/bin

# aliases
source ~/.shell/aliases.sh

# enable ls colors
if ls --color=auto &> /dev/null; then
    alias ls="ls --color=auto"
else
    export CLICOLOR=1
fi

# source everything else
source ~/.shell/local.sh

Use &> instead of 2> in ls test
Use &> instead of 2> in ls test
