view .shell.d/99.prompt.bash @ 480:4c5814d3cfd8

afcopy: some enhancements from Bryan's dotfiles This makes `afcopy` able to drop things in the clipboard over ssh. Wild stuff. See https://bitbucket.org/bcmills/dotfiles/src/101956eeb90160f1d225ae23c8e6566c9df91c5c/bin/clip?at=default&fileviewer=file-view-default for some details.
author Augie Fackler <raf@durin42.com>
date Thu, 14 Mar 2019 10:38:49 -0400
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