From: Ken-ichi Mito Date: Mon, 16 Jul 2018 03:27:43 +0000 (+0900) Subject: append a session's history on shell exit and unlimited history list X-Git-Url: http://lab.mitty.jp/git/?p=lab.git;a=commitdiff_plain;h=3c848da2dd19c0f86e8fe557dc3e484fa1853b60 append a session's history on shell exit and unlimited history list --- diff --git a/TipAndDoc/.bashrc b/TipAndDoc/.bashrc index 1306c0c..3ae7218 100644 --- a/TipAndDoc/.bashrc +++ b/TipAndDoc/.bashrc @@ -11,6 +11,11 @@ shopt -s checkhash # check always PATH hash table shopt -s cmdhist # save multi lines command to one line shopt -s no_empty_cmd_completion # no complementation with no input shopt -s histverify # check command history before execute +shopt -s histappend + +# unlimited history list +export HISTFILESIZE=-1 +export HISTSIZE=-1 # view last 30 history or search from last 1000 history