dotfiles/.void.profile

49 lines
944 B
Plaintext
Raw Normal View History

2022-09-19 14:21:30 +02:00
[ -n "$BASH_VERSION" ] && [ -f $HOME/.bashrc ] && . $HOME/.bashrc
2022-07-12 11:26:19 +02:00
2023-04-27 11:25:50 +02:00
for x in \
"$HOME/.local/share" \
"/usr/share" \
"/usr/local/share" \
; do
[ -d "$x" ] || continue
case ":${XDG_DATA_DIRS}:" in
*":${x}:"*) ;;
*) XDG_DATA_DIRS="${XDG_DATA_DIRS:+$XDG_DATA_DIRS:}${x}" ;;
esac
done
export XDG_DATA_DIRS
2022-09-19 14:21:30 +02:00
export XDG_CACHE_HOME=$HOME/.cache
export XDG_CONFIG_HOME=$HOME/.config
export XDG_DATA_HOME=$HOME/.data
2022-09-19 14:21:30 +02:00
export BROWSER=firefox
export EDITOR=vim
export PAGER=less
export VISUAL=vim
2022-07-12 11:26:19 +02:00
2023-04-27 11:22:10 +02:00
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
export MOZ_ENABLE_WAYLAND=1
fi
2022-10-16 12:44:21 +02:00
: ${SSH_AUTH_SOCK:=$XDG_RUNTIME_DIR/ssh-agent}
export SSH_AUTH_SOCK
2022-07-12 11:26:19 +02:00
for x in \
"$HOME/bin" \
"$HOME/.local/bin" \
2022-09-19 14:21:30 +02:00
"/usr/local/sbin" \
"/usr/local/bin" \
"/usr/sbin" \
"/usr/bin" \
"/sbin" \
"/bin" \
2022-07-12 11:26:19 +02:00
; do
[ -d "$x" ] || continue
case ":${PATH}:" in
2022-09-19 14:21:30 +02:00
*":${x}:"*) ;;
2023-09-15 10:57:58 +02:00
*) PATH="${x:+$x:}${PATH}" ;;
2022-07-12 11:26:19 +02:00
esac
done