From 027d259c894073365b737b9ddbf6c2d45d37a0f1 Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Thu, 30 Dec 2021 04:02:23 +0530 Subject: [PATCH] Use long arguments for commands in Fish shell --- templates/fish.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/fish.txt b/templates/fish.txt index c670e45..403622a 100644 --- a/templates/fish.txt +++ b/templates/fish.txt @@ -74,8 +74,8 @@ end # Completions for `z`. function __zoxide_z_complete - set -l tokens (commandline -op) - set -l curr_tokens (commandline -cop) + set -l tokens (commandline --current-process --tokenize) + set -l curr_tokens (commandline --cut-at-cursor --current-process --tokenize) if test (count $tokens) -le 2 -a (count $curr_tokens) -eq 1 # If there are < 2 arguments, use `cd` completions.