fixed a echo warning and alias ls so it won't be used except in ineractive shells

This commit is contained in:
ronny abraham 2025-05-06 01:32:47 +03:00
parent 01518c3cc0
commit e7d36e3737

View file

@ -80,7 +80,12 @@ else
fi fi
# ensure ls uses color # ensure ls uses color
echo "[prompt-themes] ⚙️ Applied: alias ls='ls --color=auto'" # put this inside a conditional to only use it when being run in an interactive shell
alias ls='ls --color=auto' # otherwise it will interfere with things trying to use the shell. ie scp, rsync,
# scripts...now safe to use inside .bashrc
if [[ $- == *i* ]]; then
echo "[prompt-themes] ⚙️ Applied: alias ls='ls --color=auto'"
alias ls='ls --color=auto'
fi