~xdavidwu/dotfiles

2aa8815bf5f9dea0579c8d560d464296553b4171 — xdavidwu 2 years ago 3b44db2
bash: ps1: fix for abduco session name
1 files changed, 2 insertions(+), 3 deletions(-)

M .bashrc
M .bashrc => .bashrc +2 -3
@@ 56,8 56,6 @@ HISTSIZE=2048
HISTFILESIZE=2048
HISTIGNORE="history:exit:top:ls:clear:mount:python"

PS1="\[\033[01;32m\]\u@\h${STY:+>${STY#*\.}} \[\033[01;34m\]\W\[\033[31m\]\${?#0}\[\033[0m\]\\$ "

# aliases
if [ "${OSTYPE%%-*}" = "linux" ] || [ "$OSTYPE" = "msys" ];then
	# coreutils


@@ 228,7 226,8 @@ while [ -n "$LVLSTR" ];do
	esac
	LVLSTR=${LVLSTR#?}
done
PS1="\[\033]2;$PS1AO\u@\h${ABDUCO_SESSION:+>${ABDUCO_SESSION}}${STY:+>${STY#*\.}} \w\007\]$PS1A\[\033[0m\]$PS1"
PS1="\[\033[01;32m\]\u@\h${ABDUCO_SESSION:+>$ABDUCO_SESSION}${STY:+>${STY#*\.}} \[\033[01;34m\]\W\[\033[31m\]\${?#0}\[\033[0m\]\\$ "
PS1="\[\033]2;$PS1AO\u@\h${ABDUCO_SESSION:+>$ABDUCO_SESSION}${STY:+>${STY#*\.}} \w\007\]$PS1A\[\033[0m\]$PS1"
export PTERM
alias rssh="command ssh"
alias ssh="env TERM=$PTERM ssh"