From 8c9a3b529e3616f04d78fbb0816faa240eb043ef Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Thu, 27 Jul 2023 18:17:12 +0900 Subject: [PATCH] Remove username and hosrname from fallback bash prompt Intentionally extracted from #181 --- home/.bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/.bashrc b/home/.bashrc index ac4af9e3..58f71e53 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -87,9 +87,9 @@ 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 @@ -97,7 +97,7 @@ 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" ;; *) ;;