/ Published in: Bash
Expand |
Embed | Plain Text
#HISTORY SETTINGS # ################ # don't put duplicate lines in the history. See bash(1) for more options export HISTCONTROL=ignoredups # ... and ignore same sucessive entries. export HISTCONTROL=ignoreboth # Increase Historysize export HISTSIZE=10000 # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # Ensure history is appended to .bash_history shopt -s histappend # Whenever displaying the prompt, write the previous line to disk # This deals with the "multiple window"- history problem export PROMPT_COMMAND='history -a' # History- Search by pressing up or down bind '"\e[A"':history-search-backward bind '"\e[B"':history-search-forward
You need to login to post a comment.
