dotfiles/.config/fish/functions/vitally.fish

19 lines
338 B
Fish
Raw Normal View History

2024-03-15 14:08:15 -04:00
function vitally
set cmd $argv[1]
2024-03-18 16:20:10 -04:00
if not contains $cmd start stop session-name init do
2024-03-15 14:09:30 -04:00
echo "usage: vitally <CMD>; <CMD>: start, stop, session-name, init"
2024-03-18 16:20:10 -04:00
return 1
end
if test $cmd = "do"
set cmds (string replace -a ',' '' $argv[2..])
2024-03-15 14:08:15 -04:00
else
2024-03-18 16:20:10 -04:00
set cmds $cmd
end
for c in $cmds
eval "vitally-$c"
2024-03-15 14:08:15 -04:00
end
end