summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4832db4)
This is a regression in the centralized configuration.
if (( EUID == 0 )); then
left="«" right="»"
if (( EUID == 0 )); then
left="«" right="»"
- elif [ "$__mdw_tty" = "`tty`" ]; then
- left="<" right=">"
- left="[" right="]"
- export __mdw_tty="`tty`"
+ case $USER in
+ mdw|mwooding)
+ u="" left="[" right="]"
+ ;;
+ *)
+ u="\\u@" left="{" right="}"
+ ;;
+ esac
+ if [ "$__mdw_tty" = "`tty`" ]; then
+ left="<" right=">"
+ else
+ export __mdw_tty="`tty`"
+ fi
fi
if [ -z "$SSH_CLIENT" ] &&
fi
if [ -z "$SSH_CLIENT" ] &&
- PS1="$nl$bold$left$sec_l\\h$sec_r \\w$right$unbold"
+ PS1="$nl$bold$left$sec_l$u\\h$sec_r \\w$right$unbold"
PS2="$PS1 $bold>$unbold "
fi
PS2="$PS1 $bold>$unbold "
fi
'comint-watch-for-password-prompt))
(defun mdw-term-mode-setup ()
'comint-watch-for-password-prompt))
(defun mdw-term-mode-setup ()
- (setq term-prompt-regexp "^[^]#$%>»\n]*[]#$%>»] *")
+ (setq term-prompt-regexp "^[^]#$%>»}\n]*[]#$%>»}] *")
(make-local-variable 'mouse-yank-at-point)
(make-local-variable 'transient-mark-mode)
(setq mouse-yank-at-point t)
(make-local-variable 'mouse-yank-at-point)
(make-local-variable 'transient-mark-mode)
(setq mouse-yank-at-point t)
;; --- Make the shell mode aware of my prompt ---
;; --- Make the shell mode aware of my prompt ---
-(setq shell-prompt-pattern "^[^]#$%>»\n]*[]#$%>»] *")
+(setq shell-prompt-pattern "^[^]#$%>»}\n]*[]#$%>»}] *")
(setq comint-password-prompt-regexp
(concat "\\(\\([Oo]ld \\|[Nn]ew \\|[a-zA-Z0-9_]*'s \\|^\\)"
"[Pp]assword\\|pass phrase\\):\\s *\\'"))
(setq comint-password-prompt-regexp
(concat "\\(\\([Oo]ld \\|[Nn]ew \\|[a-zA-Z0-9_]*'s \\|^\\)"
"[Pp]assword\\|pass phrase\\):\\s *\\'"))