summaryrefslogtreecommitdiff
path: root/.profile
blob: 7bdfe1003c282ccb1cc3f71a5e0f6af0194f7a8a (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
49
50
51
52
53
#!/bin/sh
# ~/.profile - run on login

# run ~/.bashrc if it exists
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"

# add ~/.local/bin to path
export PATH="$PATH:$HOME/.local/bin"

# default programs
export SHELL="bash"
export PAGER="less"
export EDITOR="vim"
export VISUAL="vim"
export BROWSER="brave"

# XDG dirs
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_STATE_HOME="$HOME/.local/state"
export XDG_RUNTIME_DIR="/run/user/$UID"

# config file locations
export INPUTRC="$XDG_CONFIG_HOME/readline"
export VIMINIT="source $XDG_CONFIG_HOME/vim"
export XINITRC="$XDG_CONFIG_HOME/x11"
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch"
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk"
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python"
export WGETRC="$XDG_CONFIG_HOME/wget"
export MBSYNCRC="$XDG_CONFIG_HOME/mbsync"
export W3M_DIR="$XDG_CONFIG_HOME/w3m"
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm"

# local library locations 
export GROFF_TMAC_PATH="$HOME/.local/lib/groff"

# program file locations
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export ELECTRUMDIR="$XDG_DATA_HOME/electrum"
export WINEPREFIX="$XDG_DATA_HOME/wine"
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export GOPATH="$XDG_DATA_HOME/go"
export IPFS_PATH="$XDG_DATA_HOME/ipfs"
export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_DATA_HOME/java"
export MINETEST_USER_PATH="$XDG_DATA_HOME/minetest"

# disable program history 
export LESSHISTFILE="-"
export NODE_REPL_HISTORY=""
export MYSQL_HISTFILE="/dev/null"