Just some configs for backup and evaluation

.bashrc 1.1KB

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # ~/.bashrc
  3. #
  4. # If not running interactively, don't do anything
  5. [[ $- != *i* ]] && return
  6. alias ls='ls --color=auto'
  7. PS1='[\u@\h \W]\$ '
  8. # >>> Added by cnchi installer
  9. BROWSER=/usr/bin/chromium
  10. EDITOR=/usr/bin/nano
  11. # Eternal bash history.
  12. # ---------------------
  13. # Undocumented feature which sets the size to "unlimited".
  14. # http://stackoverflow.com/questions/9457233/unlimited-bash-history
  15. export HISTFILESIZE=
  16. export HISTSIZE=
  17. export HISTTIMEFORMAT="[%F %T] "
  18. # Change the file location because certain bash sessions truncate .bash_history file upon close.
  19. # http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login
  20. export HISTFILE=~/.bash_eternal_history
  21. # Preserve bash history in multiple terminal windows.
  22. #----------------------------------------------------
  23. # Avoid duplicates
  24. export HISTCONTROL=ignoredups:erasedups
  25. # When the shell exits, append to the history file instead of overwriting it
  26. shopt -s histappend
  27. # After each command, append to the history file and reread it
  28. export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"