~jbauer/dotfiles

ref: daebf07b03e1fe9fe376eb75d5dd061c8fa047d3 dotfiles/.profile -rw-r--r-- 1.7 KiB
daebf07bJake Bauer Update README 5 months ago
                                                                                
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
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games

# Add local binaries/scripts to PATH
if [ -d "$HOME/.local/bin/" ]; then
	PATH="$PATH:$HOME/.local/bin"
fi

# Set golang environment variables
PATH="$PATH:/usr/local/go/bin/"
export GOPATH="$HOME/docs/proj/go"

# sndiod audio device preferences
export AUDIODEVICE=snd/1
export AUDIORECDEVICE=snd/2
export AUDIOPLAYDEVICE=snd/1

# Set the XDG specification directories
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"

# Tell various programs to respect the XDG Base Directory specification
# Removes ~/.gtkrc-2.0
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
# Removes ~/.lesshst
export LESSHISTFILE="$XDG_CACHE_HOME/lesshst"
# Removes ~/.bash_history or equivalent
export HISTFILE="$XDG_CACHE_HOME/shell_history"
# Removes ~/.hledger.journal
export LEDGER_FILE="$HOME/docs/finances/hledger.journal"

# Standard (?) environment variables
export BROWSER="qutebrowser"
export READER="zathura"
export PAGER="less"

# Colors in less/man
export LESS="--RAW-CONTROL-CHARS"
export LESS_TERMCAP_mb="$(printf '%b' '')"; a="${a%_}"
export LESS_TERMCAP_md="$(printf '%b' '')"; a="${a%_}"
export LESS_TERMCAP_me="$(printf '%b' '')"; a="${a%_}"
export LESS_TERMCAP_so="$(printf '%b' '')"; a="${a%_}"
export LESS_TERMCAP_se="$(printf '%b' '')"; a="${a%_}"
export LESS_TERMCAP_us="$(printf '%b' '')"; a="${a%_}"
export LESS_TERMCAP_ue="$(printf '%b' '')"; a="${a%_}"
export GROFF_NO_SGR=1

# Load shell config file
if [ -f "$XDG_CONFIG_HOME/shrc" ]; then
	export ENV="$XDG_CONFIG_HOME/shrc"
fi

export PATH HOME TERM