summaryrefslogtreecommitdiff
path: root/config/tcshrc
blob: 102ba72f759f4c097fd62178613f1f46a429c975 (plain)
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
set path = (~/.ghcup/bin ~/.cabal/bin ~/.cargo/bin ~/.mcabal/bin ~/.local/musl/bin ~/.local/bin /usr/local/bin /usr/bin /bin)

set prompt = "%n@%m:%~> "

if ( ${?PKG_CONFIG_PATH} ) then
	setenv PKG_CONFIG_PATH `echo /usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}`
else
	setenv PKG_CONFIG_PATH "/usr/local/lib/pkgconfig"
endif
	
setenv ALTERNATE_EDITOR emacs
setenv EDITOR "emacsclient -c"
setenv VISUAL "emacsclient -c"
setenv MORE "FRX"
setenv LESS "FRX"
setenv PAGER `which less || which more || echo "cat"`
setenv EXINIT "set ai ic sm sw=4 ts=4"

alias cb "xclip -selection clipboard"
alias bctl "bluetoothctl"
alias less "less -i"

alias e "emacs"
alias a "emacsclient -n"
alias femacs "fbterm -- fbterm-emacs.sh"
alias demacs "emacs --daemon"

alias ta "tmux attach"

alias gl "git log --graph --all --oneline"
alias glt "git log --graph --all --oneline --simplify-by-decoration"
alias gs "git status"
alias gc "git checkout"
alias gb "git branch"
alias gd "git diff --patch"
alias gds "git diff --patch --cached"

alias pd "pushd"
alias ppd "popd"
alias up "cd .."

alias ll "ls -la"
alias ls "ls --color=auto"
alias grep 'grep --color=auto'

if (`filetest -e /etc/complete.tcsh`) then
		source /etc/complete.tcsh
endif