fixed a echo warning and alias ls so it won't be used except in ineractive shells
This commit is contained in:
parent
01518c3cc0
commit
e7d36e3737
1 changed files with 7 additions and 2 deletions
|
|
@ -80,7 +80,12 @@ else
|
|||
fi
|
||||
|
||||
# ensure ls uses color
|
||||
echo "[prompt-themes] ⚙️ Applied: alias ls='ls --color=auto'"
|
||||
alias ls='ls --color=auto'
|
||||
# put this inside a conditional to only use it when being run in an interactive shell
|
||||
# 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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue