-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cshrc
156 lines (133 loc) · 4.62 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# $FreeBSD: stable/10/share/skel/dot.cshrc 266029 2014-05-14 15:23:06Z bdrewery $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
# more examples available at /usr/share/examples/csh/
#
alias h history 25
alias j jobs -l
alias la ls -aF
alias lf ls -FA
alias ll ls -lAFh
alias c xclip -i
alias v xclip -o
#alias grep grep --color=auto
alias df df -h
alias dfc dfc -d
alias ps ps -ww
alias pstree pstree -g 2
alias tree tree -N
alias gdb gdb821
alias fsl fossil
alias svn svnlite
alias mpvrt mpv --no-cache --demuxer-readahead-secs 0
alias feh feh -x -B black -N -.
alias mupdf mupdf-gl
alias sxiv sxiv -abrf -s d
alias alarm doas at -f ~/.bin/alarm.sh
alias f 'ag --nocolor -l -g "" | fzy -p "❯ "'
alias e 'ag --nocolor -l -g "" | fzy -p "❯ " | xargs kak -e "delete-buffer *stdin*"'
alias dot git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME
alias dotls dot ls-tree -r master --name-only
# These are normally set through /etc/login.conf. You may override them here
# if wanted.
set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/.local/bin /usr/local/lib/qt5/bin)
# setenv BLOCKSIZE K
# A righteous umask
umask 77
setenv EDITOR kak
setenv PAGER less
setenv BLOCKSIZE K
setenv LSCOLORS exgxfxdxcxdxdxbxbxexex
setenv CLICOLOR
#setenv TOP -CHP
setenv LESS -SR
setenv GREP_OPTIONS --color=auto
setenv MANPAGER most
setenv MANPATH $HOME/.local/man
setenv MANCOLOR yes
setenv MANWIDTH tty
#setenv DISPLAY :0
setenv SXHKD_SHELL /bin/sh
setenv GIT_PAGER cat
setenv MPD_HOST /var/mpd/socket
setenv LYNX_CFG $HOME/.lynx.cfg
#setenv PYTHONPATH $HOME/lib/python
#setenv FZF_DEFAULT_COMMAND "find . -path '*/\.*' -prune -o -type f -print -o -type l -print | sed s/^..//"
setenv FZF_DEFAULT_COMMAND 'ag --nocolor -l -g ""'
setenv FZF_DEFAULT_OPTS '--exact'
# setenv CV 70
# setenv CC /usr/local/llvm$CV/bin/clang
# setenv CXX /usr/local/llvm$CV/bin/clang++
# setenv CPP /usr/local/llvm$CV/bin/clang-cpp
# setenv LD /usr/local/llvm$CV/bin/ld.lld
# setenv LD_LIBRARY_PATH /usr/local/llvm$CV/lib
if ($?prompt) then
if (($?SSH_CLIENT || $?SSH_TTY || $?SSH_CONNECTION) && $TERM != "screen" && $TERM != "screen-256color" && ! $?TMUX) then
exec tmux -2 new-session -A -s remote;
endif
#if ($TERM != "rxvt" && $TERM != "rxvt-256color" && $TERM != "screen" && $TERM != "screen-256color" && ! $?TMUX) then
#if ($?SSH_CLIENT || $?SSH_TTY) then
#exec tmux -2 new-session -A -s remote;
#else
#set ttyn = `tty | awk '{split($0,a,"/"); print a[3]}'`
#exec tmux -f ~/.tmux_local.conf -L local new-session -A -s $ttyn;
#endif
#endif
# An interactive shell -- set some stuff up
#set prompt = "%N@%m:%~ %# "
#if ( $TERM =~ "*-256color" ) then
#set prompt = "%{\033[38;5;034m%}%N%{\033[38;5;251m%}@%{\033[38;5;037m%}%m%{\033[38;5;251m%}:%{\033[38;5;172m%}%~ %{\033[38;5;127m%}%#%{\033[0m%} "
#else
#set prompt = "%{\033[32m%}%N%{\033[37m%}@%{\033[36m%}%m%{\033[37m%}:%{\033[33m%}%~ %{\033[35m%}%#%{\033[0m%} "
#endif
set prompt = "%{\033[32m%}%N%{\033[37m%}@%{\033[36m%}%m%{\033[37m%}:%{\033[33m%}%~ %{\033[35m%}%#%{\033[0m%} "
# if ( $?WAYLAND_DISPLAY || $?DISPLAY || $?SSH_CLIENT || $?SSH_TTY || $?SSH_CONNECTION || "$tty" =~ "pts*" ) then
# if ( $?WAYLAND_DISPLAY || $?DISPLAY || $?SSH_CLIENT || $?SSH_TTY || $?SSH_CONNECTION ) then
if ( "$TERM" =~ "*-256color" ) then
set promptchars = "❯❯"
alias precmd 'printf "\033]0;${USER}@${HOST}:$cwd\007"'
else
set promptchars = "%#"
endif
# if ("$tty" =~ "pts*") then
# alias precmd 'printf "\033]0;${USER}@${HOST}:$cwd\007"'
# endif
set filec
set history = 1000
set histdup = erase
set savehist = (${history} merge)
set autolist = ambiguous
set histfile = ~/.history
# Use history to aid expansion
set autoexpand
set autorehash
set mail = (/var/mail/$USER)
set complet all
#set autocorrect
set nobeep
set matchbeep = nomatch
#set correct = cmd
set color
set colorcat
# alias precmd 'history -S'
# alias postcmd 'history -M'
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
#bindkey "^[[C" forward-char # Cursor right
#bindkey "^[[D" backward-char # Cursor left
#bindkey "^[[A" up-history # Cursor up
#bindkey "^[[B" down-history # Cursor down
bindkey "^[^[[D" backward-word # Alt Cursor left
bindkey "^[^[[C" forward-word # Alt Cursor right
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[5~" up-history # PageUp
bindkey "\e[6~" down-history # PageDown
endif
endif