diff options
author | Katharina Fey <kookie@spacekookie.de> | 2019-10-05 22:10:04 +0000 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-10-05 22:10:04 +0000 |
commit | f700d4b0404169f7e4beab940890a53de4cb79ba (patch) | |
tree | 9b0286f1dbb5515eafd178040282db60e0d26054 /modules/base/fish/functions/__history_previous_command_arguments.fish | |
parent | c04d9504fa2ae8f447ef05a1e7ddb3b21ed06af9 (diff) |
Adding nix and base modules
Diffstat (limited to 'modules/base/fish/functions/__history_previous_command_arguments.fish')
-rw-r--r-- | modules/base/fish/functions/__history_previous_command_arguments.fish | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/base/fish/functions/__history_previous_command_arguments.fish b/modules/base/fish/functions/__history_previous_command_arguments.fish new file mode 100644 index 00000000000..adc8fbd273d --- /dev/null +++ b/modules/base/fish/functions/__history_previous_command_arguments.fish @@ -0,0 +1,9 @@ +function __history_previous_command_arguments + switch (commandline -t) + case "!" + commandline -t "" + commandline -f history-token-search-backward + case "*" + commandline -i '$' + end +end |