enable history at the end
This commit is contained in:
parent
8af513b64e
commit
d0a37b9ec3
1 changed files with 8 additions and 2 deletions
10
dot_bashrc
10
dot_bashrc
|
@ -9,6 +9,9 @@
|
|||
|
||||
[[ -z "$FUNCNEST" ]] && export FUNCNEST=100 # limits recursive functions, see 'man bash'
|
||||
|
||||
# disable history
|
||||
HISTFILE=/dev/null
|
||||
|
||||
## Use the up and down arrow keys for finding a command in history
|
||||
## (you can write some initial letters of the command first).
|
||||
bind '"\e[A":history-search-backward'
|
||||
|
@ -137,8 +140,6 @@ fi
|
|||
# ---------------------------------------------------------------------------
|
||||
# History
|
||||
# ---------------------------------------------------------------------------
|
||||
set -o history
|
||||
#unset HISTFILE
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
|
@ -159,3 +160,8 @@ HISTIGNORE=history*
|
|||
|
||||
# merge history b/w sessions
|
||||
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
|
||||
|
||||
HISTFILE=~/.bash_history
|
||||
|
||||
# enable history
|
||||
set -o history
|
||||
|
|
Loading…
Add table
Reference in a new issue