fork/puffer-fish

git clone https://git.julia.blue/fork/puffer-fish

nickeb96Fix expansions breaking in ctrl-r history searchingfec3d35

v1.1.0
303 B10 linesraw
1function _puffer_fish_expand_bang
2    if commandline --search-field >/dev/null
3        commandline --search-field --insert '!'
4    else if string match --quiet -- '!' "$(commandline --current-token)"
5        commandline --current-token $history[1]
6    else
7        commandline --insert '!'
8    end
9end
10