1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/usr/bin/env bash cd "$(dirname $0)" CMD="$1" if [ "$CMD" = "start" ]; then nix-shell --command "tmuxinator local" elif [ "$CMD" = "stop" ]; then nix-shell --command "tmux kill-session -t visorando-scraper" else echo "Usage: $0 start|stop" exit 1 fi