function _puffer_fish_expand_bang switch (commandline -t) case '!' commandline -t $history[1] case '*' commandline -i '!' end end