diff --git a/src/subcommand/init/shell/fish.rs b/src/subcommand/init/shell/fish.rs index 32491db..a1e36c7 100644 --- a/src/subcommand/init/shell/fish.rs +++ b/src/subcommand/init/shell/fish.rs @@ -41,8 +41,8 @@ function {0} end function {0}i - set -l result (zoxide query -i -- $argv) - and _z_cd $result + set -l _zoxide_result (zoxide query -i -- $argv) + and _z_cd $_zoxide_result end "#, cmd diff --git a/src/subcommand/init/shell/posix.rs b/src/subcommand/init/shell/posix.rs index 240c253..be0b227 100644 --- a/src/subcommand/init/shell/posix.rs +++ b/src/subcommand/init/shell/posix.rs @@ -42,7 +42,7 @@ _z_cd() {{ }} {0}i() {{ - result="$(zoxide query -i -- "$@")" && _z_cd "$result" + _zoxide_result="$(zoxide query -i -- "$@")" && _z_cd "$_zoxide_result" }} "#, cmd diff --git a/src/subcommand/init/shell/powershell.rs b/src/subcommand/init/shell/powershell.rs index b0bbee4..fef6b20 100644 --- a/src/subcommand/init/shell/powershell.rs +++ b/src/subcommand/init/shell/powershell.rs @@ -39,9 +39,9 @@ function {0} {{ }} function {0}i {{ - $result = zoxide query -i -- @args + $_zoxide_result = zoxide query -i -- @args if ($LASTEXITCODE -eq 0) {{ - _z_cd $result + _z_cd $_zoxide_result }} }} "#,