-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile
More file actions
22 lines (22 loc) · 770 Bytes
/
Copy pathprofile
File metadata and controls
22 lines (22 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_CACHE_HOME="${HOME}/.local/tmp"
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_BIN_HOME="${XDG_DATA_HOME}/../bin"
export XDG_LIB_HOME="${XDG_DATA_HOME}/../lib"
export LESSHISTFILE="${XDG_DATA_HOME}/less/history"
export LESSKEY="${XDG_DATA_HOME}/less/keys"
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
export RUSTUP_HOME="${XDG_DATA_HOME}/cargo"
export GOPATH="${HOME}/repos/go"
for path in "$GOPATH/bin" "$CARGO_HOME/bin" "$XDG_BIN_HOME"; do
if [ -d "$path" ]; then
# XXX avoid double-prepending stuff to PATH
export PATH="$PATH:$path"
fi
done
for editor in nvim vim vi nano; do
if command -v "$editor" > /dev/null 2>&1; then
export EDITOR="$editor"
break
fi
done