about summary refs log tree commit diff stats
path: root/etc/shrc
blob: ccd0ae243c69fb7ee5434f542ceb4b5540c00fc6 (plain) (blame)
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
#!/bin/sh
# cleaner shell environment than .profile, used with shenv
export HOME_ETC="$HOME/etc"
export HOME_DATA="$HOME/share"
export HOME_LOG="$HOME/var/log"
export HOME_CACHE="$HOME/var/cache"
export HOME_BIN="$HOME/bin"
export HOME_EXT="$HOME/local"
export HOME_EXT_DATA="$HOME_EXT/share"
export HOME_EXT_BIN="$HOME_EXT/bin"
export HOME_EXT_SRC="$HOME_EXT/src"

export XDG_CACHE_HOME="$HOME_CACHE"
export XDG_CONFIG_HOME="$HOME_ETC"
export XDG_DATA_HOME="$HOME_DATA"

export PATH="$HOME_BIN:$HOME_EXT_BIN:$PATH"

export LAUNCHER="dmenu_run"
export EDITOR="vi"
export FILE="lf"
export PAGER="less"
export TERMINAL="xterm"
export OPENER="op"
export BROWSER="firefox"
export COMM="comm-sel"
export READER="zathura"
export MAILER="neomutt"
export MUSIC="ncmpcpp"
export RSS="sfeed_curses"
export SCR="maim"
export LOCK="xlock"
#sfeed
export SFEED_PLUMBER='lh'
export SFEED_YANKER="xclip -sel c -r"
export SFEED_URL_FILE="$HOME_DATA/sfeed/read"
#less args
export LESS='-iFMRX~ -x2'
#locale info
export LANGUAGE="en"
export LANG="C.UTF-8"
export LC_ALL="C.UTF-8"
#lscolor
export CLICOLOR=1
#todo(1)
export TODO="$HOME_DATA/xdg/doc/todo"
#ksh
export ENV="$HOME_ETC/ksh/kshrc"
#vi
export EXINIT="set ai extended iclower sm sw=4 ts=4 smd
map gg 1G
map gx !'mxsel -b -i
map gp :r!xsel -b -o"

#cleanup paths
export GTK2_RC_FILES="$HOME_ETC/gtk-2.0/gtkrc-2.0"
export LESSHISTFILE="-"
export GOPATH="$HOME_EXT/go"
export GOCACHE="$HOME_CACHE/go"
export GOBIN="$HOME_EXT_BIN"
export CARGO_HOME="$HOME_EXT/rust"
export PYTHONUSERBASE="$HOME_EXT/python"
export MEDNAFEN_HOME="$HOME_EXT/mednafen"
export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$HOME_ETC/java"
export TERMINFO="$HOME_DATA/terminfo"
export MAILCAPS="$HOME_ETC/mailcap"