.bash_profile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. # add local bin to path
  3. export PATH=/usr/local/bin:$PATH
  4. export LD_LIBRARY_PATH="/usr/lib:$LD_LIBRARY_PATH"
  5. # explicitly set and append to XDG_DATA_DIRS
  6. [ -z "$XDG_DATA_DIRS" ] && export XDG_DATA_DIRS="/usr/share:/usr/local/share"
  7. export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.local/share"
  8. # set language, editor, augment history behavior, enable dynamic resize
  9. export LANG=en_US.UTF-8
  10. export LANGUAGE=en_US.UTF-8
  11. export EDITOR=vim
  12. export HISTFILE="$HOME/.bash_history"
  13. export HISTCONTROL=ignoreboth:erasedups
  14. shopt -s histappend
  15. shopt -s checkwinsize
  16. shopt -s direxpand
  17. # fcitx IME support
  18. export GTK_IM_MODULE=fcitx
  19. export QT_IM_MODULE=fcitx
  20. export XMODIFIERS=@im=fcitx
  21. # specify wayland for applications (primarily games)
  22. export MOZ_ENABLE_WAYLAND=1
  23. export SDL_VIDEODRIVER="wayland,x11"
  24. export XDG_CURRENT_DESKTOP=Unity
  25. export WINE_FULLSCREEN_FSR=1
  26. export RADV_PERFTEST=gpl
  27. export MANGOHUD_CONFIG="no_display,cpu_temp,gpu_temp"
  28. export MANGOHUD=1
  29. # if bashrc exists and the terminal has stdin load it
  30. test -t 0 && . "$HOME/.bashrc"