Add fixed hostname to prompt
This commit is contained in:
parent
52be2910e5
commit
a74f3bdce2
1 changed files with 6 additions and 1 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue