mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-11-17 10:35:12 +00:00
14 lines
317 B
Fish
14 lines
317 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")
|
|
commandline -f repaint
|
|
case '*'
|
|
echo -n "$_Z_RESULT"
|
|
end
|
|
end
|
|
end
|
|
|