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