Assorted shell and Python scripts
1#!/usr/bin/env bash
2
3# Check if gum is available
4if ! command -v gum >/dev/null; then
5 echo "Missing dependency: gum"
6 echo "See https://github.com/charmbracelet/gum"
7 exit 1
8fi
9
10CMD=$(gum input --placeholder="command")
11
12if [[ -n "$ZELLIJ" ]]; then
13 zellij action new-pane -c -f --height 38 --width 150 -x 50 -y 3 -- batman "$CMD"
14else
15 echo "No Zellij sessions detected"
16 exit 1
17fi