From d7559d5c2421b11ffc5c582d958181a27aee3207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 17 Aug 2021 14:46:39 -0500 Subject: No double entries in the shell history HISTCONTROL A colon-separated list of values controlling how commands are saved on the history list. If the list of values includes ignorespace, lines which begin with a space character are not saved in the history list. A value of ignoredups causes lines matching the previous history entry to not be saved. A value of ignoreboth is shorthand for ignorespace and ignoredups. A value of erasedups causes all previous lines matching the current line to be removed from the history list before that line is saved. Any value not in the above list is ignored. If HISTCONTROL is unset, or does not include a valid value, all lines read by the shell parser are saved on the history list, subject to the value of HISTIGNORE. The second and subsequent lines of a multi-line compound command are not tested, and are added to the history regardless of the value of HISTCONTROL. --- hyperterm/hyperterm.sh | 3 +++ hyperterm/hyperterm.sha512 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hyperterm/hyperterm.sh b/hyperterm/hyperterm.sh index e549048..6e2ece5 100644 --- a/hyperterm/hyperterm.sh +++ b/hyperterm/hyperterm.sh @@ -64,6 +64,9 @@ fi #Interactive Prompt PS2="${_psi:=$_psi}" +# No double entries in the shell history. +export HISTCONTROL=ignoreboth:erasedups + # global unsets unset SYMBOL prompt _psi diff --git a/hyperterm/hyperterm.sha512 b/hyperterm/hyperterm.sha512 index 5f377ee..6f6288a 100644 --- a/hyperterm/hyperterm.sha512 +++ b/hyperterm/hyperterm.sha512 @@ -17,7 +17,7 @@ feff7e1dc5d3a84761495979eaf091dc2132fa081c3b4501756973a25e0514e9a00cc9a201767bac 7aaec7140ce7b2f2a979ed5a0c7cf3e0a23584642780a161c9d015457d9960baedae14827afa9f3439a67dc98fc110f13114bcedfef5bc616dff79462b4f29b5 ./core/update.sh f3e00b2aa8ab9f3ab44570adaa2520408ed66fd00f551654d60b64a4be3546ec781b7efa39bcd774937e654b6ffb4c7af3f21eeb36caf9c01f82f85cf28e2b4d ./core/languages.sh 1cfba599047d84a17ff92b695ebf527a505a30acc9ec21a2b9f410a7ea6dde4b23b5cf62e557d82f2fe9a8980649942424b879ca53baae4d4cb3057681baa7b6 ./core/colors.sh -ab3089453e35cc38544dffe672d532cbd559634937893a053937b599175688aecc5f3caad3064e818b883b027f27713194e3909dc3ab0246922cea00557c595a ./hyperterm.sh +5fce8c34bffa6db9e9d9f4e797912c906bc3b6f43123c4e1d5c86bb7a063096747df9e1205612276bd21a0882078e9e19174cd6f7844d8016cb53548e682077c ./hyperterm.sh 8b5504c1545ff59c18af208afe6e56e5779522bfc30f96509ad88db81c183c636d2f60e9702f5d678dab610f45e31aa3ed86e379ec9b816fcc84dd6222c92014 ./themes/pure.sh 179063519b197ffac74078b3b4f8b7268b30c9b22c62dfb6885241cb06b08cfec55c017b48eefc44da96bc190840e4a435ab0468e768c37ccce0ff09f0212c00 ./themes/special.sh 050c5ca8df1c0833631f2d2783cb942c0d77417070f921fca7b2e82031d8b9bc2933e2a492dd8ff5a5dbcea6ff851670a398f942209e83fc4e7305c05aff70ad ./themes/minterm.sh -- cgit v1.2.3