dotfiles/.config/fish/functions/vitally.fish
2024-03-18 16:20:10 -04:00

18 lines
338 B
Fish

function vitally
set cmd $argv[1]
if not contains $cmd start stop session-name init do
echo "usage: vitally <CMD>; <CMD>: start, stop, session-name, init"
return 1
end
if test $cmd = "do"
set cmds (string replace -a ',' '' $argv[2..])
else
set cmds $cmd
end
for c in $cmds
eval "vitally-$c"
end
end