Skip to content

Commit

Permalink
Remove username and hosrname from fallback bash prompt
Browse files Browse the repository at this point in the history
Intentionally extracted from #181
  • Loading branch information
kachick committed Jul 27, 2023
1 parent d3ca665 commit 8c9a3b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions home/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,17 @@ if [ -n "$force_color_prompt" ]; then
fi

if [ "$color_prompt" = yes ] && [ -z "$in_nested_nix_bash" ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
PS1='${debian_chroot:+($debian_chroot)}\w\$ '
fi
unset color_prompt force_color_prompt

if [ -z "$in_nested_nix_bash" ]; then
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm* | rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
PS1="\[\e]0;${debian_chroot:+($debian_chroot)} \w\a\]$PS1"
;;
*) ;;

Expand Down

0 comments on commit 8c9a3b5

Please sign in to comment.