summaryrefslogtreecommitdiff
path: root/.config/fish/functions/__abbr_tips_bind_space.fish
blob: 0f3710305085434a11bde45af8859d4d95560f5f (plain)
1
2
3
4
5
6
7
8
9
10
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