Mercurial > ec-dotfiles
comparison rc/tcsh @ 319:3a0bd37d37c0
solarized-compatible tcsh prompt.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sun, 18 Mar 2012 11:37:14 +0700 |
parents | f74212d79fcb |
children | e59a766d5fa3 |
comparison
equal
deleted
inserted
replaced
318:e15c84ae856d | 319:3a0bd37d37c0 |
---|---|
55 case xterm*: | 55 case xterm*: |
56 case dtterm: | 56 case dtterm: |
57 case screen*: | 57 case screen*: |
58 setenv CLICOLOR | 58 setenv CLICOLOR |
59 set myhost=`hostname | cut -d '.' -f 1` | 59 set myhost=`hostname | cut -d '.' -f 1` |
60 set prompt="[%{\033[0;33m%}%n%{\033[0m%}@%{\033[0;32m%}%m%{\033[0m%} %{\033[1;34m%}%c%{\033[0m%}]%# " | 60 set prompt="[%{\033[0;33m%}%n%{\033[0m%}@%{\033[0;32m%}%m%{\033[0m%} %{\033[0;34m%}%c%{\033[0m%}]%# " |
61 alias mypwd 'printf "%s\n" "${PWD}" | sed -e "s#^${HOME}#~#"' | 61 alias mypwd 'printf "%s\n" "${PWD}" | sed -e "s#^${HOME}#~#"' |
62 alias precmd 'printf "\033]0;${USER}@${myhost}: %s\007" "`mypwd`"' | 62 alias precmd 'printf "\033]0;${USER}@${myhost}: %s\007" "`mypwd`"' |
63 set iscolor=1 | 63 set iscolor=1 |
64 breaksw | 64 breaksw |
65 endsw | 65 endsw |