dotfiles/.profile
2023-10-13 19:16:54 +02:00

41 lines
1.1 KiB
Bash

export BROWSER=firefox
export EDITOR=vi
export FZF_DEFAULT_OPTS="-m --no-mouse"
export FZF_DEFAULT_COMMAND="find . -type f | cut -d'/' -f2-"
export XDG_CONFIG_HOME="$HOME/.config"
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
export GTK_THEME=Arc
export LESS="-R -z-2 -j4"
# fix java swing applications
export _JAVA_AWT_WM_NONREPARENTING=1
export SFEED_URL_FILE=$HOME/.sfeed/urls
[ -f ~/.profile.local ] && . ~/.profile.local
export PNPM_HOME="/home/odrling/.local/share/pnpm"
export PATH="$HOME/.local/bin:$HOME/.local/odrbin:$PNPM_HOME:$PATH:$HOME/.luarocks/bin:$HOME/.go/bin"
[ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ] && . "$HOME/.nix-profile/etc/profile.d/nix.sh"
if test -z "${XDG_RUNTIME_DIR}"; then
export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
if ! test -d "${XDG_RUNTIME_DIR}"; then
mkdir "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
fi
fi
ulimit -c unlimited
if [ "$(tty)" = '/dev/tty1' ]; then
if command -v dwl > /dev/null; then
pgrep dwl || exec dbus-launch --exit-with-session dwl -s "s6-svscan ~/.s6"
elif command -v startx > /dev/null; then
pgrep xinit || exec startx
fi
fi