diff --git a/conf.d/abbr_tips.fish b/conf.d/abbr_tips.fish index 597e0b3..9fa5a95 100644 --- a/conf.d/abbr_tips.fish +++ b/conf.d/abbr_tips.fish @@ -2,6 +2,8 @@ bind " " '_abbr_tips_bind_space' bind \n '_abbr_tips_bind_newline' bind \r '_abbr_tips_bind_newline' +set -l uninstall (basename (status -f) .fish){_uninstall} + function abbr_fish --on-event fish_postexec -d "Abbreviation reminder for the current command" set -l command (string split ' ' "$argv") set -l cmd (string replace -r -a '\\s+' ' ' "$argv" ) @@ -27,6 +29,12 @@ function abbr_fish --on-event fish_postexec -d "Abbreviation reminder for the cu end end +function $uninstall --on-event $uninstall + bind --erase \n + bind --erase \r + bind --erase " " +end + # Locking mechanism # Prevent this file to spawn more than one subshell begin