~gpanders/dotfiles

ref: c8e63bac959db19c138dcc3198a56514f0b444ff dotfiles/.config/fish/functions/__fish_whatis_current_token.fish -rw-r--r-- 393 bytes
c8e63bacGreg Anders Manage dotfiles directly in home directory 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Defined in /Users/greande/.config/fish/functions/__fish_whatis_current_token.fish @ line 1
function __fish_whatis_current_token
    set -l tok (commandline -pt)

    if test $tok[1]
        printf "\n"
        whatis $tok[1]

        set -l line_count (count (fish_prompt))
        for x in (seq 2 $line_count)
            printf "\n"
        end

        commandline -f repaint
    end
end