Another copy of my dotfiles. Because I don't completely trust GitHub.
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.

86 lines
3.0 KiB

4 years ago
4 years ago
4 years ago
4 years ago
  1. #!/bin/bash
  2. # Environment variables
  3. export QT_QPA_PLATFORMTHEME="qt5ct"
  4. export _JAVA_AWT_WM_NONREPARENTING=1
  5. export AWT_TOOLKIT=MToolkit
  6. export SHELL=/bin/zsh
  7. export TERMINAL=/usr/local/bin/st
  8. export TMUX_PLUGIN_MANAGER_PATH=~/.tmux/plugins
  9. export BORG_KEYS_DIR=~/.keys/borg
  10. export BROWSER=firefox
  11. export EDITOR=nvim
  12. export OPENER=xdg-open
  13. export ANDROID_HOME=/home/yigit/Android
  14. export DEFAULT_RECIPIENT="yigitcolakoglu@hotmail.com"
  15. # Setup PATH
  16. export PATH=$ANDROID_HOME/tools:$PATH
  17. export PATH=$ANDROID_HOME/platform-tools:$PATH
  18. export PATH=$FLUTTER_HOME/bin:$PATH
  19. export PATH="$PATH:$HOME/.local/bin:$HOME/.gem/ruby/2.7.0/bin:$GOPATH/bin:$GOPATH/binexport"
  20. export CPATH=/usr/include/opencv4
  21. # Set XDG Directories
  22. export XDG_DATA_HOME="$HOME"/.local/share
  23. export XDG_CONFIG_HOME="$HOME"/.config
  24. export XDG_CACHE_HOME="$HOME"/.cache
  25. export XDG_DATA_DIRS="/usr/local/share:/usr/share"
  26. export XDG_CONFIG_DIRS="/etc/xdg"
  27. export XDG_RUNTIME_DIR="/run/user/1000"
  28. # LF Icons
  29. LF_ICONS=$(sed ~/.config/lf/diricons \
  30. -e '/^[ \t]*#/d' \
  31. -e '/^[ \t]*$/d' \
  32. -e 's/[ \t]\+/=/g' \
  33. -e 's/$/ /')
  34. LF_ICONS=${LF_ICONS//$'\n'/:}
  35. export LF_ICONS
  36. # Cleanup Home Directory
  37. export CARGO_HOME="$XDG_DATA_HOME"/cargo
  38. export GOPATH="$XDG_DATA_HOME"/go
  39. export ANDROID_HOME="$XDG_DATA_HOME"/Sdk
  40. export FLUTTER_HOME="$XDG_DATA_HOME"/flutter
  41. export LEIN_HOME="$XDG_DATA_HOME"/lein
  42. export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
  43. export NVM_DIR="$XDG_DATA_HOME"/nvm
  44. export GNUPGHOME="$XDG_DATA_HOME"/gnupg
  45. export MBSYNCRC="$XDG_CONFIG_HOME"/isync/mbsyncrc
  46. export VIMINIT="set nocp | source ${XDG_CONFIG_HOME:-$HOME/.config}/vim/vimrc"
  47. export MYSQL_HISTFILE="$XDG_DATA_HOME"/mysql_history
  48. export TASKDATA="$XDG_DATA_HOME"/task
  49. export TASKRC="$XDG_CONFIG_HOME"/task/taskrc
  50. export WEECHAT_HOME="$XDG_CONFIG_HOME"/weechat
  51. export LESSKEY="$XDG_CONFIG_HOME"/less/lesskey
  52. export LESSHISTFILE=-
  53. export NOTMUCH_CONFIG="$XDG_CONFIG_HOME"/notmuch/notmuchrc
  54. export NMBGIT="$XDG_DATA_HOME"/notmuch/nmbug
  55. export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
  56. export IPYTHONDIR="$XDG_CONFIG_HOME"/jupyter
  57. export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME"/jupyter
  58. export PYLINTHOME="$XDG_CACHE_HOME"/pylint
  59. export WGETRC="$XDG_CONFIG_HOME/wgetrc"
  60. export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle
  61. export RANDFILE="$XDG_DATA_HOME"/openssl/rnd
  62. export _Z_DATA="$XDG_DATA_HOME/z"
  63. export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
  64. export WAKATIME_HOME="$XDG_CONFIG_HOME/wakatime"
  65. export XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc
  66. export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
  67. export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
  68. export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
  69. case "$(readlink -f /sbin/init)" in
  70. *systemd*) export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus ;;
  71. esac
  72. if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
  73. if [ ! "$DBUS_SESSION_BUS_ADDRESS" ] && [ ! $(command -v dbus-launch) ]; then
  74. exec dbus-launch --exit-with-session xinit 2> $XDG_RUNTIME_DIR/xinit.err > $XDG_RUNTIME_DIR/xinit || exit
  75. else
  76. exec xinit
  77. fi
  78. fi