From 11ce0aefa6060ff4b02a93efd96c49bf94ce83c9 Mon Sep 17 00:00:00 2001 From: Gazorby Date: Mon, 13 Apr 2020 12:35:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20delete=20keybindings=20wh?= =?UTF-8?q?en=20uninstalling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf.d/abbr_tips.fish | 8 ++++++++ 1 file changed, 8 insertions(+) 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