You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

  1. # If not running interactively, don't do anything
  2. [ -z "$PS1" ] && return
  3. # Source global definitions
  4. test -r /etc/bashrc && . /etc/bashrc
  5. test -r ~/.bash_aliases && . ~/.bash_aliases
  6. # don't put duplicate lines in the history. See bash(1) for more options
  7. # ... or force ignoredups and ignorespace
  8. HISTCONTROL=ignoreboth
  9. export HISTIGNORE="&:ls:[bf]g:pwd:exit:cd .."
  10. # append to the history file, don't overwrite it
  11. shopt -s histappend
  12. PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
  13. # Store multiline commands as one line.
  14. shopt -s cmdhist
  15. # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
  16. HISTSIZE=10000
  17. HISTFILESIZE=20000
  18. # check the window size after each command and, if necessary,
  19. # update the values of LINES and COLUMNS.
  20. shopt -s checkwinsize
  21. # Spellcheck directories
  22. shopt -s dirspell
  23. # enable programmable completion features (you don't need to enable
  24. # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  25. # sources /etc/bash.bashrc).
  26. test -f /usr/share/bash-completion/bash_completion && . /usr/share/bash-completion/bash_completion
  27. test -f /etc/bash_completion && . /etc/bash_completion