summaryrefslogtreecommitdiff
path: root/.config/fish/functions/__abbr_tips_bind_space.fish
diff options
context:
space:
mode:
Diffstat (limited to '.config/fish/functions/__abbr_tips_bind_space.fish')
-rw-r--r--.config/fish/functions/__abbr_tips_bind_space.fish11
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/fish/functions/__abbr_tips_bind_space.fish b/.config/fish/functions/__abbr_tips_bind_space.fish
new file mode 100644
index 00000000..0f371030
--- /dev/null
+++ b/.config/fish/functions/__abbr_tips_bind_space.fish
@@ -0,0 +1,11 @@
+function __abbr_tips_bind_space
+ commandline -i " "
+ if test $__abbr_tips_used != 1
+ if abbr -q -- (string trim -- (commandline))
+ set -g __abbr_tips_used 1
+ else
+ set -g __abbr_tips_used 0
+ end
+ end
+ commandline -f 'expand-abbr'
+end