mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-30 21:41:53 +08:00
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
4 lines
107 B
Bash
4 lines
107 B
Bash
# Set PS1 based on env
|
|
#
|
|
[[ $- =~ i ]] && PS1="[\u@\h \W]\[$(tput setaf 6)\][STG]\[$(tput sgr0)\]\\$ \[\]"
|