grace/dots

dotfiles/nix configs

git clone https://git.gae.moe/grace/dots

Grace Yoderi have got to be better about these things9c3d491

main
854 B26 linesraw
1function fish_default_mode_prompt --description "Display vi/helix prompt mode"
2    # Do nothing if not in vi mode
3    if test "$fish_key_bindings" = fish_vi_key_bindings
4        or test "$fish_key_bindings" = fish_helix_key_bindings
5        or test "$fish_key_bindings" = fish_hybrid_key_bindings
6        switch $fish_bind_mode
7            case default
8                set_color --bold red
9                echo '[N]'
10            case insert
11                set_color --bold green
12                echo '[I]'
13            case replace_one
14                set_color --bold green
15                echo '[R]'
16            case replace
17                set_color --bold cyan
18                echo '[R]'
19            case visual
20                set_color --bold magenta
21                echo '[V]'
22        end
23        set_color --reset
24        echo -n ' '
25    end
26end