Add usage docs

This commit is contained in:
David Heinemeier Hansson
2026-02-26 13:12:17 +01:00
parent 3408445880
commit 74c9703ea3
+4 -1
View File
@@ -1,6 +1,7 @@
# Create a Tmux Dev Layout with editor, ai, and terminal
# Usage: tdl <c|cx|codex|other_ai>
tdl() {
[[ -z $1 ]] && { echo "Usage: tdl <c|cx|codex|other_ai>"; return 1; }
[[ -z $TMUX ]] && { echo "You must start tmux to use tdl."; return 1; }
local current_dir="${PWD}"
@@ -32,6 +33,7 @@ tdl() {
# Create multiple tdl windows with one per subdirectory in the current directory
# Usage: tdlm <c|cx|codex|other_ai>
tdlm() {
[[ -z $1 ]] && { echo "Usage: tdlm <c|cx|codex|other_ai>"; return 1; }
[[ -z $TMUX ]] && { echo "You must start tmux to use tdlm."; return 1; }
local ai="$1"
@@ -59,7 +61,8 @@ tdlm() {
# Create a multi-pane swarm layout with the same command started in each pane (great for AI)
# Usage: tsl <pane_count> <command>
tsl() {
[[ -z $TMUX ]] && { echo "You must start tmux to use this function."; return 1; }
[[ -z $1 || -z $2 ]] && { echo "Usage: tsl <pane_count> <command>"; return 1; }
[[ -z $TMUX ]] && { echo "You must start tmux to use tsl."; return 1; }
local count="$1"
local cmd="$2"