dot_bash_profile 4.2 KB

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