-
Notifications
You must be signed in to change notification settings - Fork 0
/
curly-cshrc
79 lines (64 loc) · 1.43 KB
/
curly-cshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
#
alias h history 100
alias j jobs -l
alias la ls -a
alias lf ls -FA
alias ll ls -lA
alias ls ls -G
alias l ls
alias sl ls
alias llh 'ls -lh'
alias lla 'ls -la'
alias grpe grep
alias gpre grep
alias s 'cd ..'
alias .. 'cd ..'
alias vi vim
alias scope 'cscope -bR'
alias recsh source ~/.cshrc
alias serve 'python -m SimpleHTTPServer'
# A righteous umask
umask 22
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)
setenv CLICOLOR true
setenv EDITOR vi
setenv PAGER less
setenv BLOCKSIZE K
if ($?prompt) then
# An interactive shell -- set some stuff up
switch ($TERM)
case "xterm*":
set prompt = '%{\033]0;%n@%m:%~\007%}[%B%n@%m%b] %B%~%b%# '
breaksw
default:
set prompt = '[%B%n@%m%b] %B%~%b%# '
breaksw
endsw
set autolist = ambiguous
set complete = enhance
set correct = cmd
set filec
set autocorrect
set filec
set history = 500
set savehist = 100
# Use history to aid expansion
set autoexpand
set autorehash
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
endif
if ( $OSTYPE == FreeBSD ) then
alias colorls "/bin/ls -FGg"
alias ls "ls-F -FGg"
alias top "/usr/bin/top -s1"
setenv EDITOR "/usr/local/bin/vim"
setenv VISUAL $EDITOR
endif