Add fixed hostname to prompt

This commit is contained in:
Anthony Rose 2019-11-21 12:22:05 +00:00
parent 52be2910e5
commit a74f3bdce2

View file

@ -26,9 +26,14 @@ export TIME_STYLE="long-iso"
# Other exports. # Other exports.
export EDITOR=vi export EDITOR=vi
export PS1='\$ '
export PYTHONWARNINGS="ignore::UserWarning" export PYTHONWARNINGS="ignore::UserWarning"
PS1="$ "
if /bin/test -z "${HOST}"; then
HOST="$(hostname)"
fi
export PS1="${HOST%%.*}$PS1"
if [ "$BASH" ]; then if [ "$BASH" ]; then
shopt -s histappend shopt -s histappend
bind '"\e[1;5C": forward-word' bind '"\e[1;5C": forward-word'