-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tcshrc
67 lines (59 loc) · 1.84 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
# $OpenBSD: dot.cshrc,v 1.10 2020/01/24 02:09:51 okan Exp $
#
# csh initialization
# vi: tabstop=8 noexpandtab
alias df df -k
alias du du -k
alias f finger
alias h 'history -r | more'
alias j jobs -l
alias la ls -a
alias lf ls -FA
alias ll ls -lsA
alias tset 'set noglob histchars=""; eval `\tset -s \!*`; unset noglob histchars'
alias z suspend
alias flo 'pass -c flounder.online/[email protected] && '\
'sftp sftp://[email protected]:2024/'
alias gcm git commit -am
alias gd env GIT_WORK_TREE="$HOME" GIT_DIR="$HOME/.gd" GIT_CONFIG="$HOME/.gdconfig" git -c "core.excludesfile=$HOME/.gdignore"
set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R6/bin,local/bin,local/sbin,games})
set editors = (vi vim)
setenv EDITOR 'emacsclient -a "emacsclient -s /tmp/emacs1000/server -a="'
setenv VISUAL "$EDITOR"
alias i $VISUAL
alias v $VISUAL
alias e $EDITOR
set histfile = ~/.history_tcsh
if ($?prompt) then
# An interactive shell -- set some stuff up
if (-p /tmp/tcshwindowid) then
echo "$WINDOWID" > /tmp/tcshwindowid
rm /tmp/tcshwindowid
endif
set filec
set history = 5000
set savehist = (5000 merge)
set histdup = prev
set ignoreeof
set mail = (/var/mail/$USER)
set mch = `hostname -s`
set editors = 'vim vi'
bindkey "^Z" run-fg-editor
set ourday = `date +%Y-%m-%d`
ln -fs ~/.real_history_$ourday ~/.real_history
alias postcmd 'history 1 >>' ~/.real_history_$ourday
alias prompt 'set prompt = "$mch:q"":$cwd:t {\!} "'
alias cd 'cd \!*; prompt'
alias chdir 'cd \!*; prompt'
alias popd 'popd \!*; prompt'
alias pushd 'pushd \!*; prompt'
cd .
umask 22
bindkey "\e[1~" beginning-of-line # Home
bindkey "\e[7~" beginning-of-line # Home rxvt
bindkey "\e[2~" overwrite-mode # Ins
bindkey "\e[3~" delete-char # Delete
bindkey "\e[P" delete-char
bindkey "\e[4~" end-of-line # End
bindkey "\e[8~" end-of-line # End rxvt
endif