Mercurial > ec-dotfiles
comparison rc/cshrc @ 341:675590e84904
[rc/cshrc] Better LSCOLORS, prompt.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sun, 25 Mar 2012 16:42:46 +0700 |
parents | db66d53e10ea |
children | c01d272af466 |
comparison
equal
deleted
inserted
replaced
340:71016d843270 | 341:675590e84904 |
---|---|
31 setenv EDITOR vi | 31 setenv EDITOR vi |
32 setenv PAGER less | 32 setenv PAGER less |
33 setenv BLOCKSIZE K | 33 setenv BLOCKSIZE K |
34 setenv LC_COLLATE C | 34 setenv LC_COLLATE C |
35 setenv LANG en_US.UTF-8 | 35 setenv LANG en_US.UTF-8 |
36 setenv LSCOLORS "gxfxcxdxbxegedabagacad" | |
36 | 37 |
37 unset autologout | 38 unset autologout |
38 unset autoexpand | 39 unset autoexpand |
39 unset autolist | 40 unset autolist |
40 unset ignoreeof | 41 unset ignoreeof |
55 case xterm*: | 56 case xterm*: |
56 case dtterm: | 57 case dtterm: |
57 case screen*: | 58 case screen*: |
58 setenv CLICOLOR | 59 setenv CLICOLOR |
59 set myhost=`hostname | cut -d '.' -f 1` | 60 set myhost=`hostname | cut -d '.' -f 1` |
60 set prompt="[%{\033[0;33m%}%n%{\033[0m%}@%{\033[0;32m%}%m%{\033[0m%} %{\033[0;34m%}%c%{\033[0m%}]%# " | 61 set prompt="[%{\033[0;33m%}%n%{\033[0m%}@%{\033[0;32m%}%m%{\033[0m%} %{\033[0;36m%}%c%{\033[0m%}]%# " |
61 alias mypwd 'printf "%s\n" "${PWD}" | sed -e "s#^${HOME}#~#"' | 62 alias mypwd 'printf "%s\n" "${PWD}" | sed -e "s#^${HOME}#~#"' |
62 alias precmd 'printf "\033]0;${USER}@${myhost}: %s\007" "`mypwd`"' | 63 alias precmd 'printf "\033]0;${USER}@${myhost}: %s\007" "`mypwd`"' |
63 set iscolor=1 | 64 set iscolor=1 |
64 breaksw | 65 breaksw |
65 endsw | 66 endsw |
81 endif | 82 endif |
82 | 83 |
83 switch (`uname -s`) | 84 switch (`uname -s`) |
84 case FreeBSD: | 85 case FreeBSD: |
85 set path=(${path} /usr/local/{bin,sbin}) | 86 set path=(${path} /usr/local/{bin,sbin}) |
86 setenv LSCOLORS "exfxcxdxbxegedabagacad" | |
87 alias ls ls -FG | 87 alias ls ls -FG |
88 ( which gnuls ) > /dev/null && alias ls gnuls ${gnuls_opts} | 88 ( which gnuls ) > /dev/null && alias ls gnuls ${gnuls_opts} |
89 alias man man -o | 89 alias man man -o |
90 alias rm rm -I | 90 alias rm rm -I |
91 alias top top -P | 91 alias top top -P |
93 case NetBSD: | 93 case NetBSD: |
94 set path=(${path} /usr/pkg/{bin,sbin}) | 94 set path=(${path} /usr/pkg/{bin,sbin}) |
95 breaksw | 95 breaksw |
96 case OpenBSD: | 96 case OpenBSD: |
97 set path=(${path} /usr/local/{bin,sbin}) | 97 set path=(${path} /usr/local/{bin,sbin}) |
98 setenv LSCOLORS ExGxFxdxCxegedabagExEx | |
99 test "${iscolor}" -eq 1 && setenv TERM xterm-256color | 98 test "${iscolor}" -eq 1 && setenv TERM xterm-256color |
100 ( which colorls ) > /dev/null && alias ls colorls -FG | 99 ( which colorls ) > /dev/null && alias ls colorls -FG |
101 breaksw | 100 breaksw |
102 case DragonFly: | 101 case DragonFly: |
103 set path=(${path} /usr/pkg/{bin,sbin}) | 102 set path=(${path} /usr/pkg/{bin,sbin}) |
104 setenv LSCOLORS ExGxFxdxCxegedabagExEx | |
105 alias ls ls -FG | 103 alias ls ls -FG |
106 breaksw | 104 breaksw |
107 case SunOS: | 105 case SunOS: |
108 set path=(${path} /usr/{gnu,csw,xpg4}/{bin,sbin}) | 106 set path=(${path} /usr/{gnu,csw,xpg4}/{bin,sbin}) |
109 test -x /usr/gnu/bin/ls && alias ls /usr/gnu/bin/ls ${gnuls_opts} | 107 test -x /usr/gnu/bin/ls && alias ls /usr/gnu/bin/ls ${gnuls_opts} |