zoxide/functions/z.fish
2020-03-08 20:23:00 +02:00

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