mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
modularized bash history
This commit is contained in:
parent
a0f8f48016
commit
cf509c03fc
2 changed files with 15 additions and 9 deletions
13
bash/history
Normal file
13
bash/history
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
# ignore repeated, space-started, and casual commands
|
||||||
|
export HISTIGNORE="&:[ ]*:l[sl]:[bf]g:exit"
|
||||||
|
|
||||||
|
# enable multiline historization as a single line
|
||||||
|
shopt -s cmdhist
|
||||||
|
|
||||||
|
# enable appending to histfile
|
||||||
|
shopt -s histappend
|
||||||
|
|
||||||
|
# ignore sequential duplicates
|
||||||
|
export HISTCONTROL=ignoreboth
|
||||||
|
|
||||||
|
# vim: ft=sh
|
||||||
11
bash/rc
11
bash/rc
|
|
@ -1,16 +1,9 @@
|
||||||
## bashrc, called for interactive shells
|
## bashrc, called for interactive shells
|
||||||
|
|
||||||
# set a nice prompt
|
|
||||||
source $DOTFILES_BASH_DIR/prompt
|
source $DOTFILES_BASH_DIR/prompt
|
||||||
|
source $DOTFILES_BASH_DIR/history
|
||||||
|
|
||||||
# ignore repeated, space-started, and casual commands
|
# easy on spelling mistakes
|
||||||
export HISTIGNORE="&:[ ]*:l[sl]:[bf]g:exit"
|
|
||||||
|
|
||||||
# enable multiline single command
|
|
||||||
shopt -s cmdhist
|
|
||||||
|
|
||||||
# enable appending to histfile
|
|
||||||
shopt -s histappend
|
|
||||||
shopt -s cdspell
|
shopt -s cdspell
|
||||||
|
|
||||||
# turn off distractive bells
|
# turn off distractive bells
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue