dot_bash_profile 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. WAYLAND_DISPLAY=wayland-1
  2. export WAYLAND_DISPLAY
  3. XDG_CURRENT_DESKTOP=sway
  4. export XDG_CURRENT_DESKTOP
  5. XDG_SESSION_TYPE=wayland
  6. export XDG_SESSION_TYPE
  7. XDG_SESSION_DESKTOP=sway
  8. export XDG_SESSION_DESKTOP
  9. # Setups system and user profiles and related variables
  10. # /etc/profile will be sourced by bash automatically
  11. # Setups home environment profile
  12. if [[ $(tty) == "/dev/tty2" ]]
  13. then
  14. if [[ -f ~/.profile ]]
  15. then
  16. source ~/.profile
  17. fi
  18. fi
  19. export USER=oleg
  20. export LC_TIME=en_GB.UTF-8
  21. export LANG=en_US.UTF-8
  22. export LOCALE_ARCHIVE="$(readlink ~/.nix-profile/lib/locale)/locale-archive"
  23. export MANPATH=$MANPATH:$HOME/.nix-profile/share/man
  24. export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
  25. export CHICKEN_REPOSITORY=~/.eggs/lib/chicken/8
  26. export CHICKEN_DOC_REPOSITORY=/home/natsu/.eggs/share/chicken-doc
  27. export EDITOR='emacsclient -nw -c'
  28. export BROWSER='firefox'
  29. export MANWIDTH=80
  30. export INFOPATH="/home/oleg/src/git.savannah.gnu.org/git/guix/doc${INFOPATH:+:}$INFOPATH"
  31. export GUILE_WARN_DEPRECATED=no
  32. # TODO: readlink could fail to enter `guix environment`
  33. # alias wi-pure-bash="env -i $(readlink $(which bash)) --noprofile --norc"
  34. # TODO: Escape window names with asterisks.
  35. # wi-x-resize-window ()
  36. # {
  37. # window_name=$(xwininfo | grep 'Window id' | awk '{ print $5 }')
  38. # xdotool search --name "$window_name" windowsize $1 $2
  39. # }
  40. # Fix mouse wheel in gtk3
  41. # https://github.com/stumpwm/stumpwm/wiki/FAQ
  42. export GDK_CORE_DEVICE_EVENTS=1
  43. export QT_QPA_PLATFORMTHEME=gtk2
  44. export GUILE_LOAD_PATH="${HOME}/.config:${GUILE_LOAD_PATH}"
  45. RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/ripgreprc"
  46. export RIPGREP_CONFIG_PATH
  47. SSHRC_BECOME=yes
  48. export SSHRC_BECOME
  49. QEMU_WINDOWS10_DISK=/dev/disk/by-id/wwn-0x5e83a97ad8a4b20a
  50. export QEMU_WINDOWS10_DISK
  51. GRADLE_HOME=/opt/gradle
  52. export GRADLE_HOME
  53. PYTHONSTARTUP=$HOME/.pythonrc
  54. export PYTHONSTARTUP
  55. TMUXIFIER_LAYOUT_PATH="$HOME/.tmuxifier-layouts"
  56. export TMUXIFIER_LAYOUT_PATH
  57. if [ -d "/run/current-system" ]
  58. then
  59. :
  60. else
  61. source "$HOME/.guix-profile/etc/profile"
  62. if [[ -f "$GUIX_PROFILE/etc/profile" ]]; then
  63. source "$GUIX_PROFILE/etc/profile"
  64. fi
  65. BROWSER='firefox'
  66. export BROWSER
  67. GUILE_WARN_DEPRECATED=no
  68. export GUILE_WARN_DEPRECATED
  69. GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
  70. export GUIX_LOCPATH
  71. GUIX_PROFILE="$HOME/.guix-profile"
  72. export GUIX_PROFILE
  73. PATH="$HOME/.config/guix/current/bin${PATH:+:}$PATH"
  74. export PATH
  75. PATH=$HOME/bin:$HOME/.npm-global/bin:$PATH
  76. export PATH
  77. INFOPATH="/home/oleg/src/git.savannah.gnu.org/git/guix/doc${INFOPATH:+:}$INFOPATH"
  78. export INFOPATH
  79. # Fix mouse wheel in gtk3
  80. # https://github.com/stumpwm/stumpwm/wiki/FAQ
  81. export GDK_CORE_DEVICE_EVENTS=1
  82. XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
  83. #XDG_CURRENT_DESKTOP=X-Cinnamon
  84. XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/
  85. #XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/oleg
  86. #XDG_RUNTIME_DIR=/run/user/1001
  87. #XDG_SEAT=seat0
  88. #XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
  89. #XDG_SESSION_DESKTOP=cinnamon
  90. #XDG_SESSION_ID=c18
  91. #XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session8
  92. #XDG_SESSION_TYPE=x11
  93. #XDG_VTNR=7
  94. SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs"
  95. export SSL_CERT_DIR
  96. SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
  97. export SSL_CERT_FILE
  98. GIT_SSL_CAINFO="$SSL_CERT_FILE"
  99. export GIT_SSL_CAINFO
  100. CURL_CA_BUNDLE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
  101. export CURL_CA_BUNDLE
  102. fi
  103. if [ -e "$HOME/.nix-profile/lib/locale" ]
  104. then
  105. LOCALE_ARCHIVE="$(readlink "$HOME/.nix-profile/lib/locale")/locale-archive"
  106. export LOCALE_ARCHIVE
  107. fi
  108. if [ -d "$HOME/.nix-profile/share/man" ]
  109. then
  110. MANPATH="$MANPATH:$HOME/.nix-profile/share/man"
  111. export MANPATH
  112. fi
  113. EDITOR='emacsclient -nw -c'
  114. export EDITOR
  115. MANWIDTH=80
  116. export MANWIDTH
  117. PERL5LIB="/home/oleg/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"
  118. export PERL5LIB
  119. PERL_LOCAL_LIB_ROOT="/home/oleg/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"
  120. export PERL_LOCAL_LIB_ROOT
  121. PERL_MB_OPT="--install_base \"/home/oleg/perl5\""
  122. export PERL_MB_OPT
  123. PERL_MM_OPT="INSTALL_BASE=/home/oleg/perl5"
  124. export PERL_MM_OPT
  125. if [[ -f ${HOME}/.bashrc ]]
  126. then
  127. . "${HOME}/.bashrc"
  128. fi