dot.tcshrc 1.2 KB
Newer Older
Jørn Åne's avatar
Jørn Åne committed
1 2 3 4
# .tcshrc

if ( -f .cshrc ) source .cshrc

5
setenv LSCOLORS ExgxfxdaCxDaDahbadacec
Jørn Åne's avatar
Jørn Åne committed
6
setenv LS_COLORS 'di=1;34:ln=36:so=35:pi=33;40:ex=1;32:bd=1;33;40:cd=1;33;40:su=37;41:sg=30;43:tw=30;42:ow=34;42'
Jørn Åne's avatar
Jørn Åne committed
7 8
setenv CLICOLOR 1

Jørn Åne's avatar
Jørn Åne committed
9 10
setenv PAGER less
setenv EDITOR vim
11
setenv VISUAL vim
Jørn Åne's avatar
Jørn Åne committed
12

13 14
setenv LC_ALL en_GB.UTF-8
setenv CTYPE UTF-8
Jørn Åne's avatar
Jørn Åne committed
15

Jørn Åne's avatar
Jørn Åne committed
16
setenv GOPATH ~/go/
Jørn Åne's avatar
Jørn Åne committed
17
setenv PATH ${PATH}:~/go/bin
Jørn Åne's avatar
Jørn Åne committed
18

Jørn Åne's avatar
Jørn Åne committed
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
# bind keypad keys for console, vt100, vt102, xterm
bindkey "\e[1~" beginning-of-line  # Home
bindkey "\e[2~" overwrite-mode     # Ins
bindkey "\e[3~" delete-char	# Delete
bindkey "\e[4~" end-of-line	# End
bindkey "\e[5C" forward-word
bindkey "\e[5D" backward-word
bindkey "\e[1;5C" forward-word
bindkey "\e[1;5D" backward-word

# for rxvt
bindkey "\e[7~" beginning-of-line  # Home rxvt
bindkey "\e[8~" end-of-line	# End rxvt

# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
bindkey "\eOH" beginning-of-line
bindkey "\eOF" end-of-line

# for freebsd console
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line

if ($?prompt) then
	if (-x /usr/bin/id && `/usr/bin/id -u` == 0) then
		set c_path="37;41"
		set b_prompt='# '
	else
		set c_path="37;44"
		set b_prompt='%% '
	endif
49
	set prompt="\n%B%n%b@%M:%B%{\033[${c_path}m%}%~%b\n${b_prompt}"
Jørn Åne's avatar
Jørn Åne committed
50
endif