We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa54232 commit a2b5214Copy full SHA for a2b5214
βconf.d/abbr_tips.fish
@@ -4,6 +4,8 @@ bind \r '_abbr_tips_bind_newline'
4
5
set -l uninstall (basename (status -f) .fish){_uninstall}
6
7
+set -g _abbr_tips_is_abbr 0
8
+
9
function abbr_fish --on-event fish_postexec -d "Abbreviation reminder for the current command"
10
set -l command (string split ' ' "$argv")
11
set -l cmd (string replace -r -a '\\s+' ' ' "$argv" )
βfunctions/_abbr_tips_bind_newline.fish
@@ -1,8 +1,10 @@
1
function _abbr_tips_bind_newline
2
- if abbr -q (string trim (commandline))
3
- set -g _abbr_tips_is_abbr 1
- else
- set -g _abbr_tips_is_abbr 0
+ if test $_abbr_tips_is_abbr != 1
+ if abbr -q (string trim (commandline))
+ set -g _abbr_tips_is_abbr 1
+ else
+ set -g _abbr_tips_is_abbr 0
+ end
end
commandline -f 'execute'
0 commit comments