blob: 033a9ee2967529a0007cee47532485c656915d38 (
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
|
# Add PATH entries if they aren't already in PATH
# We can't use external commands yet in case PATH is empty
for p in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin "$HOME"/.local/bin "$HOME"/.cargo/bin "$HOME"/bin; do
case ":$PATH:" in
*:"$p":*) ;;
*) export PATH="$PATH:$p" ;;
esac
done
# Create a tmpdir for XDG_RUNTIME_DIR if it is not set
if ! [ "$XDG_RUNTIME_DIR" ]; then
rundir="/run/user/$(id -u)"
if [ -d "$rundir" ]; then
export XDG_RUNTIME_DIR="$rundir"
else
XDG_RUNTIME_DIR="$(mktemp -d)"
export XDG_RUNTIME_DIR
fi
fi
# Set environment variables
export EDITOR=vim
export VISUAL=vim
export PAGER=less
export SHELL=yash
export TERMINAL=foot
export BROWSER=firefox
export GTK_THEME=Catppuccin-Macchiato-Standard-Mauve-Dark
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR"/hissh-agent
export DBUS_SESSION_BUS_ADDRESS=unix:path="$XDG_RUNTIME_DIR"/bus
export XDG_CURRENT_DESKTOP=sway
|