append a session's history on shell exit and unlimited history list master
authorKen-ichi Mito <mitty@mitty.jp>
Mon, 16 Jul 2018 03:27:43 +0000 (12:27 +0900)
committerKen-ichi Mito <mitty@mitty.jp>
Mon, 16 Jul 2018 03:27:43 +0000 (12:27 +0900)
TipAndDoc/.bashrc

index 1306c0c..3ae7218 100644 (file)
@@ -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