.bashrc 864 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # ~/.bashrc
  2. # If not running interactively, don't do anything
  3. [[ $- != *i* ]] && return
  4. # Don't put duplicate lines in the history
  5. # Don't save commands which start with a space
  6. export HISTCONTROL=ignoredups:erasedups:ignorespace
  7. export HISTTIMEFORMAT="%Y/%m/%d %R "
  8. export HISTFILESIZE=100000
  9. # Append to the history file, don't overwrite it
  10. shopt -s histappend
  11. PS1='\[\033[01;34m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h\[\033[00;37m\]:\[\033[01;35m\]\w \A \[\033[00m\]$ '
  12. if [[ -f /etc/bash_completion ]]
  13. then
  14. source /etc/bash_completion
  15. fi
  16. if [[ -r $HOME/.bash_aliases ]]
  17. then
  18. source $HOME/.bash_aliases
  19. fi
  20. if [[ -x /usr/bin/dircolors ]]
  21. then
  22. if [[ -r $HOME/.colors ]]
  23. then
  24. eval $(dircolors $HOME/.colors)
  25. else
  26. echo nonciao
  27. eval $(dircolors -b)
  28. fi
  29. fi
  30. export EDITOR='/usr/bin/vim'
  31. export PYTHONSTARTUP=$HOME/.pythonrc