Files
dotfiles/fish/functions/__abbr_tips_bind_space.fish
2023-01-27 15:09:27 +01:00

12 lines
287 B
Fish

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