Setting PS1 for non-interactive shells doesn't make sense. Using tput in the PS1 causes spurious errors to be logged: tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified Resolves: #5234
3 lines
107 B
Bash
3 lines
107 B
Bash
# Set PS1 based on env
|
|
#
|
|
[[ $- =~ i ]] && PS1="[\u@\h \W]\[$(tput setaf 6)\][STG]\[$(tput sgr0)\]\\$ \[\]"
|