-
Notifications
You must be signed in to change notification settings - Fork 156
/
.profile
103 lines (84 loc) · 2.86 KB
/
.profile
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
#!/usr/bin/env sh
#
# Defines runtime environment
#
export LD_LIBRARY_PATH=/usr/lib/
export LOCAL_ETC="${HOME}/.local/etc"
export LOCAL_BIN="${HOME}/.local/bin"
export LOCAL_LIB="${HOME}/.local/lib"
export LOCAL_SRC="${HOME}/.local/src"
export LOCAL_VAR="${HOME}/.local/var"
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_RUNTIME_DIR="${HOME}/.local/run"
export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_CONFIG_HOME="${HOME}/.config"
export SVDIR="${LOCAL_VAR}/service"
export SVROOT="${LOCAL_ETC}/sv"
export LEMONBUDDY_HOME="${LOCAL_VAR}/github/jaagr/lemonbuddy"
export POLYBAR_HOME="${XDG_CONFIG_HOME}/polybar"
export PTEST="${POLYBAR_HOME}/testing"
export GITHUB_HOME="${LOCAL_VAR}/github"
export CURRENT_THEME="${LOCAL_ETC}/themer/current"
export PERL_HOME="${LOCAL_VAR}/perl"
export ARDMK_DIR="${LOCAL_SRC}/arduino/contrib/makefile"
export ARDUINO_DIR="/usr/lib/arduino"
command -v perl >/dev/null && [ -e "${PERL_HOME}/lib/perl5/local/lib.pm" ] && {
eval "$(perl -I"${PERL_HOME}/lib/perl5" -Mlocal::lib="${PERL_HOME}")"
}
export BSPWMRC="${LOCAL_ETC}/bspwm/bspwmrc"
export BSPWM_STATE="${XDG_CACHE_HOME}/bspwm/state.json"
export BSPWM_FIFO="${XDG_CACHE_HOME}/bspwm/wm_state"
export SXHKD_SHELL="/usr/bin/dash"
export GOPATH="${LOCAL_SRC}/go"
export GIMP2_DIRECTORY="${XDG_CONFIG_HOME}/gimp"
export TORRENTS="/storage/data/torrents"
export MUSIC="/storage/media/music"
export MOVIES="/storage/media/movies"
export PHOTOS="/storage/media/photos"
export WALLPAPERS="/storage/media/wallpapers"
export BACKUPS="/storage/backups"
export VAULT="/storage/vault"
export ARCH="x86_64"
export ARCHFLAGS="-arch x86_64"
export LANG="en_US.UTF-8"
export BROWSER="vimperator"
export EDITOR="nvim"
export VISUAL="nvim"
export PAGER="less"
export PERLDOC_PAGER="more"
export LESS="-g -i -M -R -S -w -K -z-4 --lesskey-file=${XDG_CONFIG_HOME}/lesskey"
export LESSHISTFILE="${XDG_CACHE_HOME}/.lesshst"
export GREP_COLORS="mt=30;43"
export NOTMUCH_CONFIG="${XDG_CONFIG_HOME}/notmuch/config"
export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc"
export WINEPREFIX="${XDG_DATA_HOME}/wine"
export NO_AT_BRIDGE=1
export QT_STYLE_OVERRIDE="GTK+"
export LPASS_AGENT_TIMEOUT=0
export LPASS_DISABLE_PINENTRY=1
[ -r "${LOCAL_ETC}/xorg/xenvironment" ] && . "${LOCAL_ETC}/xorg/xenvironment"
[ "$TERM" = "xterm" ] && {
export TERM="xterm-256color"
}
# Update PATH
path_prepend() {
case ":$PATH:" in
*":$1:"*) return ;; # already added
*) PATH="$1:$PATH";;
esac
}
[ -d "$LOCAL_LIB" ] && {
for dir in "$LOCAL_LIB"/* "$LOCAL_LIB"; do
[ -d "$dir" ] && path_prepend "$dir"
[ -d "$dir/contrib" ] && path_prepend "$dir/contrib"
done
}
[ -d "$LOCAL_BIN" ] && {
for dir in "$LOCAL_BIN"/* "$LOCAL_BIN"; do
[ -d "$dir" ] && path_prepend "$dir"
done
}
unset dir
unset -f path_prepend
export PATH="$PATH:/usr/local/sbin:/usr/local/bin"
export MANPATH="$MANPATH:/usr/local/share/man:/usr/share/man"