mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2025-01-16 03:32:39 +00:00
13 lines
305 B
Fish
13 lines
305 B
Fish
|
function z
|
||
|
if test (count $argv) -gt 0
|
||
|
set _Z_RESULT (zoxide query $argv)
|
||
|
switch "$_Z_RESULT"
|
||
|
case 'query: *'
|
||
|
cd (string sub -s 8 -- "$_Z_RESULT")
|
||
|
case '*'
|
||
|
echo "$_Z_RESULT"
|
||
|
end
|
||
|
commandline -f repaint
|
||
|
end
|
||
|
end
|