aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEuro20179 <f>2021-03-02 16:00:31 -0800
committerEuro20179 <f>2021-03-02 16:00:31 -0800
commita8432b89785757e2ca7ae6c2bf8a98e4dd671c80 (patch)
tree7b20ce18a6e63001598f56eb83061fde93786165
parente6b5bfc163ca1cca6b212356e1a4fc3d97bd0ea2 (diff)
downloadytfzf-a8432b89785757e2ca7ae6c2bf8a98e4dd671c80.tar.gz
overwrite history file vs remaking it
-rwxr-xr-xytfzf2
1 files changed, 1 insertions, 1 deletions
diff --git a/ytfzf b/ytfzf
index e6a70de..966412a 100755
--- a/ytfzf
+++ b/ytfzf
@@ -473,7 +473,7 @@ parse_opt () {
H) get_history ;;
- x) [ -e "$history_file" ] && rm "$history_file" && touch "$history_file" && printf "History has been cleared\n"
+ x) [ -e "$history_file" ] && (echo "" > "$history_file") && printf "History has been cleared\n"
exit ;;
a) auto_select=1 ;;
Un proyecto texto-plano.xyz