-
Notifications
You must be signed in to change notification settings - Fork 4
/
.cshrc
76 lines (65 loc) · 1.49 KB
/
.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
# ~/.cshrc
#
# https://github.com/agkozak/dotfiles
alias h history 100
alias j jobs -l
alias la ls -a
alias lf ls -FA
alias ll ls -lA
if ( `uname -s` != 'SunOS' ) then
alias ls ls -G
endif
alias .. cd ..
alias ... cd ../..
# 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 PAGER less
setenv BLOCKSIZE K
if ($?prompt) then
# An interactive shell -- set some stuff up
if ( $?tcsh ) then
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
endif
set autolist = ambiguous
set complete = enhance
set correct = cmd
set filec
set autocorrect
set filec
set history = 100
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
bindkey -v
# Like Zsh's `setopt AUTO_CD'
set implicitcd
endif
endif
# Enable colors and such for git diffs
setenv MORE "-erX"
# Use vim when possible
if ( -x /usr/local/bin/vim || -x /usr/bin/vim ) then
setenv VISUAL vim
setenv EDITOR vim
else if ( -x /usr/bin/vi || -x /bin/vi ) then
setenv VISUAL vi
setenv EDITOR vi
endif
if ( $?VISUAL && "$VISUAL" == vim ) alias vi vim
setenv ENV "$HOME/.shrc"
# vim: ts=2:sts=2:sw=2:et:ai