From a39154e349dc93b4471a7c3ddf95fbcb2dc64e4e Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Sat, 6 May 2023 11:18:24 +0530 Subject: [PATCH] Replace -i with --interactive --- templates/bash.txt | 4 ++-- templates/elvish.txt | 2 +- templates/nushell.txt | 2 +- templates/posix.txt | 2 +- templates/zsh.txt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/bash.txt b/templates/bash.txt index 1af9b1f..aeec524 100644 --- a/templates/bash.txt +++ b/templates/bash.txt @@ -90,7 +90,7 @@ function __zoxide_z() { # Jump to a directory using interactive search. function __zoxide_zi() { \builtin local result - result="$(\command zoxide query -i -- "$@")" && __zoxide_cd "${result}" + result="$(\command zoxide query --interactive -- "$@")" && __zoxide_cd "${result}" } {{ section }} @@ -133,7 +133,7 @@ if [[ ${BASH_VERSINFO[0]:-0} -eq 4 && ${BASH_VERSINFO[1]:-0} -ge 4 || ${BASH_VER elif [[ -z ${COMP_WORDS[-1]} ]] && [[ ${COMP_WORDS[-2]} != "${__zoxide_z_prefix}"?* ]]; then \builtin local result # shellcheck disable=SC2312 - result="$(\command zoxide query --exclude "$(__zoxide_pwd)" -i -- "{{ "${COMP_WORDS[@]:1:${#COMP_WORDS[@]}-2}" }}")" && + result="$(\command zoxide query --exclude "$(__zoxide_pwd)" --interactive -- "{{ "${COMP_WORDS[@]:1:${#COMP_WORDS[@]}-2}" }}")" && COMPREPLY=("${__zoxide_z_prefix}${result}/") \builtin printf '\e[5n' fi diff --git a/templates/elvish.txt b/templates/elvish.txt index ea1a5b1..1f48a91 100644 --- a/templates/elvish.txt +++ b/templates/elvish.txt @@ -68,7 +68,7 @@ edit:add-var __zoxide_z~ $__zoxide_z~ fn __zoxide_zi {|@rest| var path try { - set path = (zoxide query -i -- $@rest) + set path = (zoxide query --interactive -- $@rest) } catch { } else { __zoxide_cd $path diff --git a/templates/nushell.txt b/templates/nushell.txt index cb8ee71..b01d3f8 100644 --- a/templates/nushell.txt +++ b/templates/nushell.txt @@ -54,7 +54,7 @@ def-env __zoxide_z [...rest:string] { # Jump to a directory using interactive search. def-env __zoxide_zi [...rest:string] { - cd $'(zoxide query -i -- $rest | str trim -r -c "\n")' + cd $'(zoxide query --interactive -- $rest | str trim -r -c "\n")' {%- if echo %} echo $env.PWD {%- endif %} diff --git a/templates/posix.txt b/templates/posix.txt index 13be61c..ca4b53f 100644 --- a/templates/posix.txt +++ b/templates/posix.txt @@ -74,7 +74,7 @@ __zoxide_z() { # Jump to a directory using interactive search. __zoxide_zi() { - __zoxide_result="$(\command zoxide query -i -- "$@")" && __zoxide_cd "${__zoxide_result}" + __zoxide_result="$(\command zoxide query --interactive -- "$@")" && __zoxide_cd "${__zoxide_result}" } {{ section }} diff --git a/templates/zsh.txt b/templates/zsh.txt index d261a31..744c49f 100644 --- a/templates/zsh.txt +++ b/templates/zsh.txt @@ -76,7 +76,7 @@ function __zoxide_z() { # Jump to a directory using interactive search. function __zoxide_zi() { \builtin local result - result="$(\command zoxide query -i -- "$@")" && __zoxide_cd "${result}" + result="$(\command zoxide query --interactive -- "$@")" && __zoxide_cd "${result}" } # Completions.