diff --git a/conf.d/abbr_tips.fish b/conf.d/abbr_tips.fish index a704ec9..20126a1 100644 --- a/conf.d/abbr_tips.fish +++ b/conf.d/abbr_tips.fish @@ -5,8 +5,8 @@ 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 -Ux ABBR_TIPS_PROMPT "\n💡 \e[1m{{ .abbr }}\e[0m => {{ .cmd }}"; end -if ! set -q ABBR_TIPS_AUTO_UPDATE; set -Ux ABBR_TIPS_AUTO_UPDATE 'background'; end +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 function abbr_fish --on-event fish_postexec -d "Abbreviation reminder for the current command" set -l command (string split ' ' "$argv") diff --git a/functions/abbr_tips_update.fish b/functions/abbr_tips_update.fish index 8401b5c..3c239de 100644 --- a/functions/abbr_tips_update.fish +++ b/functions/abbr_tips_update.fish @@ -1,8 +1,8 @@ function abbr_tips_update -d "Update abbreviations variables for fish-abbr-tips" set -e _ABBR_TIPS_KEYS set -e _ABBR_TIPS_VALUES - set -Ux _ABBR_TIPS_KEYS - set -Ux _ABBR_TIPS_VALUES + set -gx _ABBR_TIPS_KEYS + set -gx _ABBR_TIPS_VALUES set -l i 1 set -l abb (string replace -r '.*-- ' '' (abbr -s))