fork/puffer-fish
git clone https://git.julia.blue/fork/puffer-fish
0d40526
master
1function _puffer_fish_expand_star 2if commandline --search-field> /dev/null 3commandline --search-field --insert'*' 4else if string match --quiet --'!' "$ ( commandline --current-token ) " 5set -l prev_cmd$history [ 1 ] 6set -l prev_args( string split' ' $prev_cmd ) 7set -e prev_args[ 1 ] # remove command name 8set -l arg_str( string join' ' $prev_args ) 9# replace !* with all arguments 10commandline --current-token'' 11commandline --insert$arg_str 12else 13commandline --insert'*' 14end 15end