mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-28 12:32:50 +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
108 B
Bash
4 lines
108 B
Bash
# Set PS1 based on env
|
|
#
|
|
[[ $- =~ i ]] && PS1="[\u@\h \W]\[$(tput setaf 3)\][PROD]\[$(tput sgr0)\]\\$ \[\]"
|