Rename $result to $_zoxide_result
This commit is contained in:
parent
ba13b45940
commit
11ba2af20e
|
@ -41,8 +41,8 @@ function {0}
|
||||||
end
|
end
|
||||||
|
|
||||||
function {0}i
|
function {0}i
|
||||||
set -l result (zoxide query -i -- $argv)
|
set -l _zoxide_result (zoxide query -i -- $argv)
|
||||||
and _z_cd $result
|
and _z_cd $_zoxide_result
|
||||||
end
|
end
|
||||||
"#,
|
"#,
|
||||||
cmd
|
cmd
|
||||||
|
|
|
@ -42,7 +42,7 @@ _z_cd() {{
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{0}i() {{
|
{0}i() {{
|
||||||
result="$(zoxide query -i -- "$@")" && _z_cd "$result"
|
_zoxide_result="$(zoxide query -i -- "$@")" && _z_cd "$_zoxide_result"
|
||||||
}}
|
}}
|
||||||
"#,
|
"#,
|
||||||
cmd
|
cmd
|
||||||
|
|
|
@ -39,9 +39,9 @@ function {0} {{
|
||||||
}}
|
}}
|
||||||
|
|
||||||
function {0}i {{
|
function {0}i {{
|
||||||
$result = zoxide query -i -- @args
|
$_zoxide_result = zoxide query -i -- @args
|
||||||
if ($LASTEXITCODE -eq 0) {{
|
if ($LASTEXITCODE -eq 0) {{
|
||||||
_z_cd $result
|
_z_cd $_zoxide_result
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
"#,
|
"#,
|
||||||
|
|
Loading…
Reference in New Issue