forked from PeterDaveHello/Unitial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tcshrc
75 lines (59 loc) · 1.43 KB
/
tcshrc
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
#unalias all the alias(es) before set anything
unalias *
#set default charset and language
setenv LANG en_US.UTF-8
setenv LC_ALL en_US.UTF-8
#show all options like bash when ambiguous
set autolist=ambiguous
#default editor
setenv EDITOR vim
setenv VISUAL vim
#bindkey
bindkey "\e[1~" beginning-of-line
bindkey "\e[1~" beginning-of-line
bindkey "\e[2~" quoted-insert
bindkey "\e[3~" delete-char
bindkey "\e[4~" end-of-line
bindkey "\e[5C" forward-word
bindkey "\e[5D" backward-word
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
#tmux color issue
alias tmux '\tmux -2'
###alias###
#ls
alias ls '\ls -GF'
alias l 'ls -C'
alias ll 'ls -lh'
alias la 'ls -A'
alias lal 'ls -lha'
#grep
alias grep '\grep --color=auto'
alias fgrep '\fgrep --color=auto'
alias egrep '\egrep --color=auto'
#network tool
alias p 'ping'
alias n 'nslookup'
alias d 'dig'
alias t 'mtr'
alias ssh 'ssh -v'
#cd
alias cd.. '\cd ..'
alias cd... '\cd ../..'
alias .. '\cd ..'
alias ... '\cd ../..'
alias .... '\cd ../../..'
alias ..... '\cd ../../../..'
#other alias
alias c 'clear'
alias sudo '\sudo -E'
alias du '\du -h'
alias df '\df -hT'
alias free '\free -h'
alias wgetncc 'wget --no-check-certificate'
###alias###
#load git auto completion script
if ( -e ~/.git-completion.tcsh && -e ~/.git-completion.bash ) then
source ~/.git-completion.tcsh
endif