Mercurial > ec-dotfiles
annotate tcsh @ 83:b65925c07cf6
Merge
author | Edho Prima Arief <me@myconan.net> |
---|---|
date | Sat, 09 Jul 2011 15:34:55 +0700 |
parents | 59db9fa5d28b |
children | 1057412834a5 |
rev | line source |
---|---|
0 | 1 #!/usr/bin/env tcsh |
74
54a82956bb11
[tcsh,setup] updated tcsh to new naming scheme.
Edho Prima Arief <me@myconan.net>
parents:
39
diff
changeset
|
2 [ -e "${HOME}/.ecos_tcsh.before" ] && source "${HOME}/.ecos_tcsh.before" |
0 | 3 umask 22 |
4 limit coredumpsize 0 | |
5 | |
6 set prompt="[%B%n@%m %~%b]%# " | |
74
54a82956bb11
[tcsh,setup] updated tcsh to new naming scheme.
Edho Prima Arief <me@myconan.net>
parents:
39
diff
changeset
|
7 set path=({,/usr}/{bin,sbin} "${HOME}"/{,.ecos_}bin) |
0 | 8 set history=1000 |
9 set savehist=1000 | |
10 set nobeep | |
11 set filec | |
12 | |
13 setenv EDITOR vi | |
14 setenv PAGER less | |
15 setenv BLOCKSIZE K | |
16 setenv LC_COLLATE C | |
17 setenv LANG en_US.UTF-8 | |
18 | |
19 unset autologout | |
20 unset autoexpand | |
21 unset autolist | |
22 unset ignoreeof | |
23 | |
24 unalias \* | |
78
06fd72a78cc1
tcsh: remote desktop alias.
Edho Prima Arief <me@myconan.net>
parents:
74
diff
changeset
|
25 alias rd "rdesktop -g 1280x700 -K -a 16 -z -P -r sound:off -r clipboard:CLIPBOARD -5" |
0 | 26 alias h history 25 |
27 alias j jobs -l | |
28 alias la ls -A | |
29 alias ll ls -lA | |
30 alias ls ls -F | |
39 | 31 alias rm rm -i |
0 | 32 |
33 if ($?prompt) then | |
34 set gnuls_opts="--color=auto --group-directories-first -F" | |
35 set iscolor=0 | |
36 switch (${TERM}) | |
37 case xterm*: | |
38 case dtterm: | |
39 case screen*: | |
40 setenv CLICOLOR | |
41 set myhost=`hostname | cut -d '.' -f 1` | |
42 set prompt="[%{\033[0;33m%}%n%{\033[0m%}@%{\033[0;32m%}%m%{\033[0m%} %{\033[1;34m%}%c%{\033[0m%}]%# " | |
43 alias mypwd 'printf "%s\n" "${PWD}" | sed -e "s#^${HOME}#~#"' | |
44 alias precmd 'printf "\033]0;${USER}@${myhost}: %s\007" "`mypwd`"' | |
45 set iscolor=1 | |
46 breaksw | |
47 endsw | |
48 | |
49 if ("$TERM" == "screen") then | |
50 bindkey '\e[1~' beginning-of-line | |
51 bindkey '\e[3~' delete-char | |
52 bindkey '\e[4~' end-of-line | |
53 bindkey '\e[5~' history-search-backward | |
54 bindkey '\e[6~' history-search-forward | |
55 bindkey '\eOD' backward-word | |
56 bindkey '\eOC' forward-word | |
57 bindkey '\e\e[D' backward-word | |
58 bindkey '\e\e[C' forward-word | |
59 endif | |
60 bindkey "^W" backward-delete-word | |
61 bindkey -k up history-search-backward | |
62 bindkey -k down history-search-forward | |
63 endif | |
64 | |
65 switch (`uname -s`) | |
66 case FreeBSD: | |
67 set path=(${path} /usr/local/{bin,sbin}) | |
68 setenv LSCOLORS ExGxFxdxCxegedabagExEx | |
69 alias ls ls -FG | |
70 ( which gnuls ) > /dev/null && alias ls gnuls ${gnuls_opts} | |
71 alias man man -o | |
39 | 72 alias rm rm -I |
0 | 73 breaksw |
74 case NetBSD: | |
75 set path=(${path} /usr/pkg/{bin,sbin}) | |
76 breaksw | |
77 case OpenBSD: | |
78 set path=(${path} /usr/local/{bin,sbin}) | |
79 [ "${iscolor}" -eq 1 ] && setenv TERM xterm-256color | |
80 breaksw | |
81 case DragonFly: | |
82 set path=(${path} /usr/pkg/{bin,sbin}) | |
83 setenv LSCOLORS ExGxFxdxCxegedabagExEx | |
84 alias ls ls -FG | |
85 breaksw | |
86 case SunOS: | |
87 set path=(${path} /usr/{gnu,csw,xpg4}/{bin,sbin}) | |
88 [ -x /usr/gnu/bin/ls ] && alias ls /usr/gnu/bin/ls ${gnuls_opts} | |
89 breaksw | |
90 case Linux: | |
91 alias ls ls ${gnuls_opts} | |
92 alias grep grep --color=auto | |
93 breaksw | |
94 endsw | |
95 unset gnuls_opts | |
96 | |
33 | 97 ( which vim ) > /dev/null && alias vi vim && setenv EDITOR vim |
0 | 98 |
74
54a82956bb11
[tcsh,setup] updated tcsh to new naming scheme.
Edho Prima Arief <me@myconan.net>
parents:
39
diff
changeset
|
99 [ -e "${HOME}/.ecos_tcsh.after" ] && source "${HOME}/.ecos_tcsh.after" |
80 | 100 |
101 [ -x "/usr/games/fortune" ] && "/usr/games/fortune" |