From 11ba2af20e1759cafc1deaadf307ac2706abe10d Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Sun, 28 Jun 2020 00:16:30 +0530 Subject: [PATCH] Rename $result to $_zoxide_result --- src/subcommand/init/shell/fish.rs | 4 ++-- src/subcommand/init/shell/posix.rs | 2 +- src/subcommand/init/shell/powershell.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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 }} }} "#,