From 5a1303e450787ee8ed092401404c75efd12b8656 Mon Sep 17 00:00:00 2001 From: luk Date: Wed, 19 Aug 2026 09:48:47 +0800 Subject: [PATCH] u --- nixhome/.bashrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixhome/.bashrc b/nixhome/.bashrc index 9b2e710..be49c91 100644 --- a/nixhome/.bashrc +++ b/nixhome/.bashrc @@ -131,6 +131,7 @@ else PTYPE=4 if [[ -n "$SSH_CONNECTION" ]]; then PSTYLE=05 # blink + PTYPE=4 fi fi if [ "$(uname)" = "Darwin" ]; then @@ -143,9 +144,9 @@ elif [ -f /etc/ubuntu_version ]; then MYOSVERSION=Ubt`cat /etc/ubuntu_version 2>/dev/null` fi if [ "$color_prompt" = yes ]; then - PS1='## \[\033[$PSTYLE;${PTYPE}2m\]\t\[\033[00m\] \[\033[$PSTYLE;${PTYPE}5m\]\u\[\033[00m\] @\[\033[$PSTYLE;${PTYPE}1m\]\h\[\033[00m\] =\[\033[$PSTYLE;${PTYPE}6m\]$MYIPPUB\[\033[00m\] #\[\033[$PSTYLE;${PTYPE}5m\]$(uname -m),$(uname),$MYOSVERSION\[\033[00m\] \[\033[$PSTYLE;${PTYPE}2m\]\w/\[\033[00m\] \n## \[\033[$PSTYLE;${PTYPE}7m\]\W/\[\033[00m\] ' + PS1='¶ \[\033[$PSTYLE;${PTYPE}2m\]\t\[\033[00m\] \[\033[$PSTYLE;${PTYPE}5m\]\u\[\033[00m\] @\[\033[$PSTYLE;${PTYPE}1m\]\h\[\033[00m\] =\[\033[$PSTYLE;${PTYPE}3m\]$MYIPPUB\[\033[00m\] #\[\033[$PSTYLE;${PTYPE}5m\]$(uname -m),$(uname),$MYOSVERSION\[\033[00m\] \[\033[$PSTYLE;${PTYPE}4m\]\w/\[\033[00m\] \n§ \[\033[$PSTYLE;${PTYPE}4m\]\W/\[\033[00m\] ' else - PS1='## \t \u @\h =$MYIPPUB #$(uname -m),$(uname),$MYOSVERSION \w/ \n## \W/ ' # \w shows absolute path, \W shows current folder. + PS1='¶ \t \u @\h =$MYIPPUB #$(uname -m),$(uname),$MYOSVERSION \w/ \n§ \W/ ' # \w shows absolute path, \W shows current folder. fi unset color_prompt force_color_prompt