From 8600374371f91843064441113f4023cda1730877 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 18 Mar 2023 16:40:57 -0300 Subject: General fish fixes and updates --- .config/fish/functions/__abbr_tips_bind_space.fish | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .config/fish/functions/__abbr_tips_bind_space.fish (limited to '.config/fish/functions/__abbr_tips_bind_space.fish') 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 -- cgit v1.2.3