Originally posted by Matir
/etc/profile is only executed on login shells, I believe.
I see. But, if my /etc/profile sets up LS_COLORS and LS_OPTIONS as environmental variables, shouldn't they be available to nonlogin shells?
Here is the only instance where my /etc/profile mentions colors.
# Set up the LS_COLORS and LS_OPTIONS environment variables for color ls:
if [ "$SHELL" = "/bin/zsh" ]; then
eval `dircolors -z`
elif [ "$SHELL" = "/bin/ash" ]; then
eval `dircolors -s`
eval `dircolors -b`