-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tcshrc
57 lines (47 loc) · 1.29 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
# $OpenBSD: dot.cshrc,v 1.7 2009/01/30 08:42:26 sobrado Exp $
#
# csh initialization
set path = (/usr/local/{bin,sbin} /usr/{bin,sbin} /{bin,sbin})
if ($?prompt) then
# An interactive shell -- set some stuff up
set autocorrect
set autoexpand
set autolist
set echo_style = both
set edit = vim
set fignore = ( .o ~ % )
set filec
set noclobber
set nobeep
set noding
set notify
# set prompt = "[%P] [%l] [%h] %m:%B%n%b:%~%# "
# set prompt = "%m:%B%n%b:%~%# "
set prompt = "[%P] %m:%B%n%b:%~%# "
set promptchars = '>#'
set rmstar
set watch = (0 any any)
setenv EDITOR vim
setenv LANG en_US.UTF-8
setenv LC_ALL en_US.UTF-8
unset autorehash
alias . source
alias a 'tmux attach'
bindkey '^L' clear-screen
bindkey '^W' backward-delete-word
bindkey '^U' kill-whole-line
bindkey "^X" list-choices
# Golang
setenv GOPATH $home/go
set path = ($GOPATH/bin $path)
if ($OSTYPE == 'linux') then
set path = ($home/local/{bin,sbin} $path)
set prompt = "[%P] %m:%B%n%b:%~%# "
alias d 'df -hT --sync'
alias l 'ls -lh --color=auto'
alias ll 'ls -AcfLl --color=auto'
alias precmd 'echo -n "\033]0;${HOST}:$cwd\007"'
endif
cd .
umask 22
endif