#!/usr/bin/env bash # Check if gum is available if ! command -v gum >/dev/null; then echo "Missing dependency: gum" echo "See https://github.com/charmbracelet/gum" exit 1 fi CMD=$(gum input --placeholder="command") if [[ -n "$ZELLIJ" ]]; then zellij action new-pane -c -f --height 38 --width 150 -x 50 -y 3 -- batman "$CMD" else echo "No Zellij sessions detected" exit 1 fi