Assorted shell and Python scripts
at main 524 B view raw
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 10# Check if get-def is available 11if ! command -v get-def >/dev/null; then 12 echo "Missing dependency: get-def" 13 echo "Run pipx install get-def" 14 exit 1 15fi 16 17WORD=$(gum input --placeholder="word") 18 19if [[ -n "$ZELLIJ" ]]; then 20 zellij action new-pane -- get-def "$WORD" 21else 22 echo "No Zellij sessions detected." 23 exit 1 24fi