You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

profile 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Set common directories
  2. XDG_DATA_HOME=$HOME/.local/share
  3. XDG_CACHE_HOME=$HOME/.local/cache
  4. XDG_CONFIG_HOME=$HOME/.local/etc
  5. XDG_RUNTIME_DIR=/tmp/runtime-$USER
  6. XBPS_DISTDIR=$HOME/git/void-packages
  7. DOTS_DIR=$HOME/dot
  8. mkdir -p $XDG_RUNTIME_DIR
  9. # Override system variables
  10. PATH=$HOME/.local/bin:$HOME/.nimble/bin:$PATH
  11. GPG_TTY=$(tty)
  12. TERMINAL='kitty -1'
  13. EDITOR=kak
  14. VISUAL=kak
  15. PAGER=less
  16. MANPAGER=less
  17. QT_QPA_PLATFORMTHEME=gtk2
  18. GTK2_RC_FILES=$XDG_CONFIG_HOME/gtk-2.0/gtkrc
  19. LESSHISTFILE="-"
  20. GNUPGHOME=$XDG_DATA_HOME/gnupg
  21. GPG_AGENT_INFO=$GNUPGHOME/S.gpg-agent:0:1
  22. _JAVA_AWT_WM_NONREPARENTING=1
  23. _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'
  24. # Mass export
  25. export \
  26. XDG_DATA_HOME XDG_RUNTIME_DIR XDG_CACHE_HOME XDG_CONFIG_HOME XDG_RUNTIME_DIR \
  27. XBPS_DISTDIR DOTS_DIR GTK2_RC_FILES LESSHISTFILE TERMINAL EDITOR VISUAL \
  28. PAGER MANPAGER GPG_TTY GPG_AGENT_INFO GNUPGHOME QT_QPA_PLATFORMTHEME \
  29. _JAVA_AWT_WM_NONREPARENTING _JAVA_OPTIONS
  30. # Init sharable {ssh,gpg}-agent
  31. if [ -z "$SSH_AUTH_SOCK" ]; then
  32. if ! pgrep -xu "$(id -u)" gpg-agent >/dev/null; then
  33. gpg-agent -q --daemon >"$XDG_CACHE_HOME/ssh-env"
  34. fi
  35. . "$XDG_CACHE_HOME/ssh-env"
  36. fi
  37. # Start X or shell
  38. if [ -z "$DISPLAY" ] && [ "$GPG_TTY" = /dev/tty1 ]; then
  39. exec dbus-launch sx
  40. fi
  41. exec elvish