From f700d4b0404169f7e4beab940890a53de4cb79ba Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Sat, 5 Oct 2019 22:10:04 +0000 Subject: Adding nix and base modules --- modules/base/fish/functions/__history_previous_command.fish | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 modules/base/fish/functions/__history_previous_command.fish (limited to 'modules/base/fish/functions/__history_previous_command.fish') diff --git a/modules/base/fish/functions/__history_previous_command.fish b/modules/base/fish/functions/__history_previous_command.fish new file mode 100644 index 00000000000..40555452230 --- /dev/null +++ b/modules/base/fish/functions/__history_previous_command.fish @@ -0,0 +1,8 @@ +function __history_previous_command + switch (commandline -t) + case "!" + commandline -t $history[1]; commandline -f repaint + case "*" + commandline -i ! + end +end -- cgit v1.2.3