Eliminate the `$user' local variable from `__mdw_set_prompt_pieces'.
## Choose the right delimiters. Highlight root prompts specially;
## highlight when I'm running as some other user. Highlight when this
## isn't the outermost shell on the terminal.
## Choose the right delimiters. Highlight root prompts specially;
## highlight when I'm running as some other user. Highlight when this
## isn't the outermost shell on the terminal.
- local left right user u tty
- user=${USER-${LOGNAME-$(id -un)}}
case $(id -u) in
0)
left=$(echo « | iconv -f UTF-8 -t //translit)
right=$(echo » | iconv -f UTF-8 -t //translit)
;;
*)
case $(id -u) in
0)
left=$(echo « | iconv -f UTF-8 -t //translit)
right=$(echo » | iconv -f UTF-8 -t //translit)
;;
*)
mdw | mwooding | nemo) u="" left="[" right="]" ;;
mdw | mwooding | nemo) u="" left="[" right="]" ;;
- *) u="$user@" left="{" right="}" ;;
+ *) u="$USER@" left="{" right="}" ;;
esac
tty=$(tty)
case "$__mdw_tty" in
esac
tty=$(tty)
case "$__mdw_tty" in