diff --git a/ssh/rootfs/etc/profile.d/hassio.sh b/ssh/rootfs/etc/profile.d/hassio.sh index c5a6f879a..bd6a9d7ea 100644 --- a/ssh/rootfs/etc/profile.d/hassio.sh +++ b/ssh/rootfs/etc/profile.d/hassio.sh @@ -1,4 +1,9 @@ -export PS1='\W $ ' +export PS1='\W' +if [ "${USER-}" = root ]; then + PS1="$PS1 # " +else + PS1="$PS1 \$ " +fi case "${TERM-}" in rxvt*|vte*|xterm*) PS1='\[\e]0;\u@\h:\w\a\]'"$PS1" ;; esac