dot_bash_profile 4.0 KB

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