選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. GOPATH=$XDG_DATA_HOME/go
  9. CARGO_HOME=$XDG_DATA_HOME/cargo
  10. mkdir -p "$XDG_RUNTIME_DIR"
  11. # Override system variables
  12. PATH=$HOME/.local/bin:$DOTS_DIR/bin:$HOME/.nimble/bin:$CARGO_HOME/bin:$GOPATH/bin:$PATH
  13. GPG_TTY=$(tty)
  14. TERMINAL='kitty -1'
  15. EDITOR=kak
  16. VISUAL=kak
  17. QT_QPA_PLATFORMTHEME=gtk2
  18. NO_AT_BRIDGE=1
  19. GTK2_RC_FILES=$XDG_CONFIG_HOME/gtk-2.0/gtkrc
  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. unset LS_COLORS
  25. # Mass export
  26. export \
  27. XDG_DATA_HOME XDG_RUNTIME_DIR XDG_CACHE_HOME XDG_CONFIG_HOME XDG_RUNTIME_DIR \
  28. XBPS_DISTDIR DOTS_DIR GTK2_RC_FILES TERMINAL EDITOR VISUAL \
  29. GOPATH CARGO_HOME GPG_TTY GPG_AGENT_INFO GNUPGHOME QT_QPA_PLATFORMTHEME \
  30. _JAVA_AWT_WM_NONREPARENTING _JAVA_OPTIONS NO_AT_BRIDGE
  31. # Init sharable {ssh,gpg}-agent
  32. if [ -z "$SSH_AUTH_SOCK" ]; then
  33. if ! pgrep -xu "$(id -u)" gpg-agent >/dev/null; then
  34. gpg-agent -q --daemon >"$XDG_CACHE_HOME/ssh-env"
  35. fi
  36. . "$XDG_CACHE_HOME/ssh-env"
  37. fi
  38. # Start X or shell
  39. if [ "$GPG_TTY" = /dev/tty1 ]; then
  40. exec dbus-launch sx
  41. fi
  42. exec elvish