Mercurial > ec-dotfiles
diff 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 |
line wrap: on
line diff
--- a/rc/tcsh Sun Mar 18 11:36:34 2012 +0700 +++ b/rc/tcsh Sun Mar 18 11:37:14 2012 +0700 @@ -57,7 +57,7 @@ case screen*: setenv CLICOLOR set myhost=`hostname | cut -d '.' -f 1` - set prompt="[%{\033[0;33m%}%n%{\033[0m%}@%{\033[0;32m%}%m%{\033[0m%} %{\033[1;34m%}%c%{\033[0m%}]%# " + set prompt="[%{\033[0;33m%}%n%{\033[0m%}@%{\033[0;32m%}%m%{\033[0m%} %{\033[0;34m%}%c%{\033[0m%}]%# " alias mypwd 'printf "%s\n" "${PWD}" | sed -e "s#^${HOME}#~#"' alias precmd 'printf "\033]0;${USER}@${myhost}: %s\007" "`mypwd`"' set iscolor=1