Rename $result to $_zoxide_result

This commit is contained in:
Ajeet D'Souza 2020-06-28 00:16:30 +05:30
parent ba13b45940
commit 11ba2af20e
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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
}}
}}
"#,