.bash_profile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. # add local bin to path
  3. export PATH=/usr/local/bin:$PATH
  4. # explicitly set and append to XDG_DATA_DIRS
  5. [ -z "$XDG_DATA_DIRS" ] && export XDG_DATA_DIRS="/usr/share:/usr/local/share"
  6. export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.local/share"
  7. # set language, editor, augment history behavior, enable dynamic resize
  8. export LANG=en_US.UTF-8
  9. export LANGUAGE=en_US.UTF-8
  10. export EDITOR=vim
  11. export HISTFILE="$HOME/.bash_history"
  12. export HISTCONTROL=ignoreboth:erasedups
  13. shopt -s histappend
  14. shopt -s checkwinsize
  15. shopt -s direxpand
  16. # fcitx IME support
  17. export GTK_IM_MODULE=fcitx
  18. export QT_IM_MODULE=fcitx
  19. export XMODIFIERS=@im=fcitx
  20. # specify wayland for applications (primarily games)
  21. export MOZ_ENABLE_WAYLAND=1
  22. export SDL_VIDEODRIVER="wayland"
  23. export XDG_CURRENT_DESKTOP=Unity
  24. export WINE_FULLSCREEN_FSR=1
  25. # add aliases with optimized settings
  26. alias ls='ls -vhFA --color=auto'
  27. alias grep='grep --color=auto'
  28. alias ..='cd ..'
  29. alias ...='cd ../..'
  30. alias sshfs='sshfs -o cache=yes,compression=yes,kernel_cache'
  31. # alias for discord wayland, since it ignores configs
  32. alias discord='discord --enable-features=UseOzonePlatform --ozone-platform=wayland'
  33. # if bashrc exists and the terminal has stdin load it
  34. test -t 0 && . "$HOME/.bashrc"