Skip to content

Commit

Permalink
πŸ› fix: fix uninstall function
Browse files Browse the repository at this point in the history
  • Loading branch information
gazorby committed Apr 13, 2020
1 parent 6a700a0 commit b58971f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions conf.d/abbr_tips.fish
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ 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}

set -g _abbr_tips_used 0
if ! set -q ABBR_TIPS_PROMPT; set -gx ABBR_TIPS_PROMPT "\nπŸ’‘ \e[1m{{ .abbr }}\e[0m => {{ .cmd }}"; end
if ! set -q ABBR_TIPS_AUTO_UPDATE; set -gx ABBR_TIPS_AUTO_UPDATE 'background'; end
Expand Down Expand Up @@ -44,7 +42,7 @@ function abbr_fish --on-event fish_postexec -d "Abbreviation reminder for the cu
end
end

function $uninstall --on-event $uninstall
function __abbr_tips_uninstall --on-event abbr_tips_uninstall
bind --erase \n
bind --erase \r
bind --erase " "
Expand All @@ -53,6 +51,7 @@ function $uninstall --on-event $uninstall
set --erase _ABBR_TIPS_KEYS
set --erase ABBR_TIPS_PROMPT
set --erase ABBR_TIPS_AUTO_UPDATE
set --erase ABBR_TIPS_ALIAS_WHITELIST
end

# Locking mechanism
Expand Down

0 comments on commit b58971f

Please sign in to comment.