···11+#!/usr/bin/env bash
22+33+# Check if gum is available
44+if ! command -v gum >/dev/null; then
55+ echo "Missing dependency: gum"
66+ echo "See https://github.com/charmbracelet/gum"
77+ exit 1
88+fi
99+1010+# Check if get-def is available
1111+if ! command -v get-def >/dev/null; then
1212+ echo "Missing dependency: get-def"
1313+ echo "Run pipx install get-def"
1414+ exit 1
1515+fi
1616+1717+WORD=$(gum input --placeholder="word")
1818+1919+if [[ -n "$ZELLIJ" ]]; then
2020+ zellij action new-pane -- get-def "$WORD"
2121+else
2222+ echo "No Zellij sessions detected."
2323+ exit 1
2424+fi
+1-1
split_man
···11#!/usr/bin/env bash
2233# Check if gum is available
44-if ! test -x "$(command -v gum)"; then
44+if ! command -v gum >/dev/null; then
55 echo "Missing dependency: gum"
66 echo "See https://github.com/charmbracelet/gum"
77 exit 1