mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-11-10 23:30:57 +00:00
Rename $result to $_zoxide_result
This commit is contained in:
parent
ba13b45940
commit
11ba2af20e
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}}
|
||||
}}
|
||||
"#,
|
||||
|
Loading…
Reference in New Issue
Block a user