-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
64 lines (53 loc) · 1.42 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
# shellcheck shell=sh disable=2034
umask u=rwx,go=
prepend_paths() {
for d_; do
[ -d "$d_" ] || continue
case :$PATH: in
*:"$d_":*) ;;
*) PATH=$d_:$PATH ;;
esac
done
unset d_
}
set -o allexport
XDG_CACHE_HOME=$HOME/.cache
XDG_CONFIG_HOME=$HOME/.config
XDG_DATA_HOME=$HOME/.local/share
XDG_STATE_HOME=$HOME/.local/state
XDG_BIN_HOME=$HOME/.local/bin
case :$XDG_DATA_DIRS: in
*:"$XDG_DATA_HOME":*) ;;
*) XDG_DATA_DIRS=$XDG_DATA_DIRS:$XDG_DATA_HOME ;;
esac
if [ -x "$(command -v nvim)" ]; then
EDITOR=nvim
MANPAGER='nvim +Man!'
fi
if [ -x "$(command -v bat)" ]; then
PAGER=bat
fi
CARGO_HOME=$XDG_DATA_HOME/cargo
DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
DOTNET_CLI_HOME=$XDG_DATA_HOME/dotnet
GOPATH=$XDG_DATA_HOME/go
HISTFILE=$XDG_STATE_HOME/bash/history
ICEAUTHORITY=$XDG_CACHE_HOME/ICEauthority
NODE_REPL_HISTORY=$XDG_DATA_HOME/node_repl_history
NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
PARALLEL_HOME=$XDG_CONFIG_HOME/parallel
PYTHONSTARTUP=$XDG_CONFIG_HOME/python/pythonrc
RUSTUP_HOME=$XDG_DATA_HOME/rustup
WINEPREFIX=$XDG_DATA_HOME/wine
CABAL_CONFIG=$XDG_CONFIG_HOME/cabal/config
CABAL_DIR=$XDG_DATA_HOME/cabal
GHCUP_USE_XDG_DIRS=1
STACK_XDG=1
if [ -f "$HOME/.env" ]; then . "$HOME/.env"; fi
prepend_paths \
"$XDG_BIN_HOME" \
"$HOME/.nix-profile/bin" \
"$CARGO_HOME/bin" \
"$XDG_CONFIG_HOME/emacs/bin"
set +o allexport
# vim: set ts=4 sw=4 et: