aboutsummaryrefslogtreecommitdiff
path: root/modules/base/fish/functions/__history_previous_command.fish
blob: 40555452230a9a6a57e278ead2b9a5ab9f19b9e5 (plain)
1
2
3
4
5
6
7
8
function __history_previous_command
  switch (commandline -t)
  case "!"
    commandline -t $history[1]; commandline -f repaint
  case "*"
    commandline -i !
  end
end