# HG changeset patch # User Edho Arief # Date 1332045434 -25200 # Node ID 3a0bd37d37c03529713947789237e0f0741742bc # Parent e15c84ae856d9bc37b18737aa03565b31f9371f3 solarized-compatible tcsh prompt. diff -r e15c84ae856d -r 3a0bd37d37c0 rc/tcsh --- 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