The lack of teams in the history of terminal XX

I know that the other day I entered a command, but now I can not find it with historyor .bash_history. Any ideas why this is happening? I suspect that this is due to the use of multiple tabs in my OS X terminal, and somehow the story does not wrap between tabs, but I don’t know.

+4
source share
3 answers

As in OS X El Capitan 10.11, by default, Bash is configured to save separate commands for each terminal, so they can be restored separately to resume.

Each individual story is also added to the global story in ~ / .bash_history when the shell completes. If you exit the terminal and then open it again - with or without resume, you should find that the commands from each terminal are in ~ / .bash_history. If renewal is enabled, each restored terminal will contain only the restored history, but when creating a new terminal, it will begin with the last global history.

~/.bash_history, , HISTFILESIZE, . - 500. 10 000. HISTSIZE 10 000, (, 500 ).

script, , /etc/bashrc_Apple_Terminal OS X El Capitan 10.11 . , , , .

+3

. , ~/.bash_sessions. bash , El Capitan, /etc/bashrc_Apple_Terminal. echo $HISTFILE. , touch ~/.bash_sessions_disable. "" . , echo $HISTFILE. , !

+5

. , , . , , , .

+1

All Articles