Skip to content

Commit

Permalink
πŸ› fix(regex): don't treat '-' as a word separator
Browse files Browse the repository at this point in the history
  • Loading branch information
gazorby committed May 12, 2020
1 parent c577193 commit aa1bbd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conf.d/abbr_tips.fish
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ if not set -q ABBR_TIPS_AUTO_UPDATE; set -gx ABBR_TIPS_AUTO_UPDATE 'background';
if not set -q ABBR_TIPS_REGEXES
set -gx ABBR_TIPS_REGEXES
set -a ABBR_TIPS_REGEXES '(^(\w+\s+)+(-{1,2})\w+)(\s\S+)'
set -a ABBR_TIPS_REGEXES '(^( ?\w+){3}).*'
set -a ABBR_TIPS_REGEXES '(^( ?\w+){2}).*'
set -a ABBR_TIPS_REGEXES '(^( ?\w+){1}).*'
set -a ABBR_TIPS_REGEXES '(^(\s?(\w-?)+){3}).*'
set -a ABBR_TIPS_REGEXES '(^(\s?(\w-?)+){2}).*'
set -a ABBR_TIPS_REGEXES '(^(\s?(\w-?)+){1}).*'
end

function __abbr_tips --on-event fish_postexec -d "Abbreviation reminder for the current command"
Expand Down

0 comments on commit aa1bbd5

Please sign in to comment.