Skip to content

Commit

Permalink
✨ Add option for purging only on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiborisov committed Oct 4, 2022
1 parent b062513 commit cd3f467
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions/_sponge_on_prompt.fish
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
function _sponge_on_prompt --on-event fish_prompt
_sponge_remove_from_history
if test $sponge_purge_only_on_exit = false
_sponge_remove_from_history
end
end

0 comments on commit cd3f467

Please sign in to comment.