Skip to content

Commit

Permalink
.bash/shell: enable histreedit for !/^ cock-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
janmoesen committed Oct 24, 2011
1 parent 4ee0558 commit 92262f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .bash/shell
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ export LANG='en_GB';

# History
# -----------------------------------------------------------------------------
# When the command contains an invalid history operation (for instance when
# using an unescaped "!" (I get that a lot in quick e-mails and commit
# messages) or a failed substitution (e.g. "^foo^bar" when there was no "foo"
# in the previous command line), do not throw away the command line, but let me
# correct it.
shopt -s histreedit;

# Keep a reasonably long history.
export HISTSIZE=4096;

Expand Down

0 comments on commit 92262f3

Please sign in to comment.