Skip to content

Commit b58971f

Browse files
committed
πŸ› fix: fix uninstall function
1 parent 6a700a0 commit b58971f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

β€Žconf.d/abbr_tips.fishβ€Ž

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ bind " " '_abbr_tips_bind_space'
22
bind \n '_abbr_tips_bind_newline'
33
bind \r '_abbr_tips_bind_newline'
44

5-
set -l uninstall (basename (status -f) .fish){_uninstall}
6-
75
set -g _abbr_tips_used 0
86
if ! set -q ABBR_TIPS_PROMPT; set -gx ABBR_TIPS_PROMPT "\nπŸ’‘ \e[1m{{ .abbr }}\e[0m => {{ .cmd }}"; end
97
if ! set -q ABBR_TIPS_AUTO_UPDATE; set -gx ABBR_TIPS_AUTO_UPDATE 'background'; end
@@ -44,7 +42,7 @@ function abbr_fish --on-event fish_postexec -d "Abbreviation reminder for the cu
4442
end
4543
end
4644

47-
function $uninstall --on-event $uninstall
45+
function __abbr_tips_uninstall --on-event abbr_tips_uninstall
4846
bind --erase \n
4947
bind --erase \r
5048
bind --erase " "
@@ -53,6 +51,7 @@ function $uninstall --on-event $uninstall
5351
set --erase _ABBR_TIPS_KEYS
5452
set --erase ABBR_TIPS_PROMPT
5553
set --erase ABBR_TIPS_AUTO_UPDATE
54+
set --erase ABBR_TIPS_ALIAS_WHITELIST
5655
end
5756

5857
# Locking mechanism

0 commit comments

Comments
Β (0)