changeset 341:675590e84904

[rc/cshrc] Better LSCOLORS, prompt.
author Edho Arief <edho@myconan.net>
date Sun, 25 Mar 2012 16:42:46 +0700
parents 71016d843270
children 4a37643931c4
files rc/cshrc
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/rc/cshrc	Sun Mar 25 02:14:56 2012 +0700
+++ b/rc/cshrc	Sun Mar 25 16:42:46 2012 +0700
@@ -33,6 +33,7 @@
 setenv BLOCKSIZE K
 setenv LC_COLLATE C
 setenv LANG en_US.UTF-8
+setenv LSCOLORS "gxfxcxdxbxegedabagacad"
 
 unset autologout
 unset autoexpand
@@ -57,7 +58,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[0;34m%}%c%{\033[0m%}]%# "
+      set prompt="[%{\033[0;33m%}%n%{\033[0m%}@%{\033[0;32m%}%m%{\033[0m%} %{\033[0;36m%}%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
@@ -83,7 +84,6 @@
 switch (`uname -s`)
   case FreeBSD:
     set path=(${path} /usr/local/{bin,sbin})
-    setenv LSCOLORS "exfxcxdxbxegedabagacad"
     alias ls ls -FG
     ( which gnuls ) > /dev/null && alias ls gnuls ${gnuls_opts}
     alias man man -o
@@ -95,13 +95,11 @@
     breaksw
   case OpenBSD:
     set path=(${path} /usr/local/{bin,sbin})
-    setenv LSCOLORS ExGxFxdxCxegedabagExEx
     test "${iscolor}" -eq 1 && setenv TERM xterm-256color
     ( which colorls ) > /dev/null && alias ls colorls -FG
   breaksw
   case DragonFly:
     set path=(${path} /usr/pkg/{bin,sbin})
-    setenv LSCOLORS ExGxFxdxCxegedabagExEx
     alias ls ls -FG
   breaksw
   case SunOS: