bashrc 991 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # If not running interactively, don't do anything
  2. case $- in
  3. *i*) ;;
  4. *) return;;
  5. esac
  6. # don't put duplicate lines or lines starting with space in the history.
  7. # See bash(1) for more options
  8. HISTCONTROL=ignoreboth
  9. # append to the history file, don't overwrite it
  10. shopt -s histappend
  11. # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
  12. HISTSIZE=1000
  13. HISTFILESIZE=2000
  14. # check the window size after each command and, if necessary,
  15. # update the values of LINES and COLUMNS.
  16. shopt -s checkwinsize
  17. case "$TERM" in
  18. xterm*|rxvt*)
  19. PS1='[\u@\h \W]\$ '
  20. ;;
  21. *)
  22. ;;
  23. esac
  24. alias ll='ls -alF'
  25. alias la='ls -A'
  26. alias l='ls -CF'
  27. alias ls='ls -G'
  28. if [ -f $(brew --prefix)/etc/bash_completion ]; then
  29. . $(brew --prefix)/etc/bash_completion
  30. fi
  31. export EDITOR="mvim"
  32. alias vim="mvim"
  33. [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
  34. export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting