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

9 lines
170 B
Fish
Raw Permalink Normal View History

2023-09-18 07:20:52 +01:00
function __history_previous_command
switch (commandline -t)
case "!"
commandline -t $history[1]; commandline -f repaint
case "*"
commandline -i !
end
end