mirror of
https://gitea.zaclys.com/yannic/dotfiles.git
synced 2026-06-15 11:11:57 +02:00
enable history at the end
This commit is contained in:
+8
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user