Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am vrinek on github.
  • I am vrinek (https://keybase.io/vrinek) on keybase.
  • I have a public key ASCN8yyYMWaUQoDifFldhoS4u8RE6CVQ7YLgYTrdzeh3hwo

To claim this, I am signing this object:

@vrinek
vrinek / in-parallel.fish
Created February 2, 2022 13:51
Fish function to run multiple commands in parallel
argparse "n/name=" "c/commands=+" -- $argv
or return
set n (count $_flag_commands)
tmux has-session -t "$_flag_name"
if test "$status" -eq "0"
echo "tmux session already exists for $_flag_name, maybe still running?"
echo "Try `tmux new -As $_flag_name` to attach to it."
return 1