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
|
||||
Loading…
Add table
Add a link
Reference in a new issue