Skip to content

Commit

Permalink
Fix bash; use hash mark in root prompt (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
scop authored Dec 12, 2022
1 parent 1215369 commit 4b5506c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ssh/rootfs/etc/profile.d/hassio.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4b5506c

Please sign in to comment.