bashrc 866 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Default bashrc file
  2. DOTFILES=/home/cmte/dotfiles/bash; export DOTFILES
  3. # Set bash-completion
  4. if ! shopt -oq posix; then
  5. if [ -f /usr/share/bash-completion/bash_completion ]; then
  6. . /usr/share/bash-completion/bash_completion
  7. elif [ -f /etc/bash_completion ]; then
  8. . /etc/bash_completion
  9. fi
  10. fi
  11. # Set Bash history
  12. HISTCONTROL=ignoredups
  13. HISTSIZE=10000
  14. HISTFILE_SIZE=20000
  15. shopt -s checkwinsize
  16. # Set PS1 variable
  17. export PS1="[\u@\h \W]\\$ \[$(tput sgr0)\]"
  18. # Read configurations
  19. [ -f $DOTFILES/aliases ] && . $DOTFILES/aliases
  20. [ -f $DOTFILES/paths ] && . $DOTFILES/paths
  21. [ -f $DOTFILES/environment ] && . $DOTFILES/environment
  22. [ -f $DOTFILES/ps1 ] && . $DOTFILES/ps1
  23. source "$HOME/.cargo/env"
  24. # enable firefox hw renderer
  25. export MOZ_X11_EGL=1
  26. . "$HOME/.cargo/env"
  27. export PATH=$PATH:/home/cmte/bin
  28. source '/home/cmte/lib/azure-cli/az.completion'