Mercurial > dotfiles
view .shell.d/99.prompt.bash @ 453:6f3342c9e53d
emacs: use exec-path-from-shell-initialize on OS X
This should mean I can start emacs like a normal application and have
things work.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 06 Jan 2018 17:03:00 -0500 |
parents | cb6704a7cef2 |
children |
line wrap: on
line source
if [ "x`whoami`" = "xroot" ] ; then PS1='\[\e];\u@\h: \w [bash]\]\a[\h:\w] \[\e[31m\]\u\[\e[0m\]# ' else PS1='\[\e];\u@\h: \w [bash]\a\][\h:\w] \[\e[34m\]\u\[\e[0m\]$ ' fi if [ "$TERM" = "rxvt" ] || [ "$TERM" = "xterm" ] \ || [ "$TERM" = "xterm-color" ] || [ "$TERM" = "screen" ]; then export FANCYTYPE="YES" else export FANCYTYPE="NO" PS1='[\h:\w] \u$ ' fi