Skip to content

Commit

Permalink
πŸ“ docs: clearer comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gazorby committed Apr 12, 2020
1 parent 72ace08 commit 2ef089d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf.d/abbr_tips.fish
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function abbr_fish --on-event fish_postexec -d "Abbreviation reminder for the cu
return
end

# First test the command as is, then after removing option arguments
# Test the command as is, or with option arguments removed
if set -l abb (contains -i -- "$cmd" $_ABBR_TIPS_VALUES)
or set -l abb (contains -i -- (string replace -r -a '((-{1,2})\\w+)(\\s\\S+)' '$1' "$cmd") $_ABBR_TIPS_VALUES)
echo -e "\nπŸ’‘ \e[1m$_ABBR_TIPS_KEYS[$abb]\e[0m => $_ABBR_TIPS_VALUES[$abb]"
Expand Down

0 comments on commit 2ef089d

Please sign in to comment.