diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-06-12 14:17:25 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-06-12 14:20:07 +0530 |
commit | 25f9105a9776e2cf4a60c1d7c64b0f508e616246 (patch) | |
tree | 09a6b17b0c10750e40de45081e3e43c12b36cafd /share | |
parent | 602109bd8d8600258117fd2b3554e4fe7bd22402 (diff) |
Made history --help show history man page and history is now saved only once while deleting items
Diffstat (limited to 'share')
-rw-r--r-- | share/functions/history.fish | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/share/functions/history.fish b/share/functions/history.fish index b71931c0..7383f52e 100644 --- a/share/functions/history.fish +++ b/share/functions/history.fish @@ -54,6 +54,9 @@ function history --description "Deletes an item from history" set found_items (builtin history --search --contains $contains_args) case none builtin history $argv + + #Save changes after deleting item + builtin history --save return 0 end @@ -101,8 +104,12 @@ function history --description "Deletes an item from history" else builtin history --delete $found_items[(math $i - 1)] end + end end + + #Save changes after deleting item(s) + builtin history --save end case save #Save changes to history file |