dotfiles/.config/fish/functions/__history_previous_command.fish

8 lines
170 B
Fish

function __history_previous_command
switch (commandline -t)
case "!"
commandline -t $history[1]; commandline -f repaint
case "*"
commandline -i !
end
end