From 74c9703ea37426dafbba8bcc5ae6883e2ca3bfb6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 26 Feb 2026 13:12:17 +0100 Subject: [PATCH] Add usage docs --- default/bash/fns/tmux | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/default/bash/fns/tmux b/default/bash/fns/tmux index 49da6d45..1cd77ad4 100644 --- a/default/bash/fns/tmux +++ b/default/bash/fns/tmux @@ -1,6 +1,7 @@ # Create a Tmux Dev Layout with editor, ai, and terminal # Usage: tdl tdl() { + [[ -z $1 ]] && { echo "Usage: tdl "; 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 tdlm() { + [[ -z $1 ]] && { echo "Usage: tdlm "; 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 tsl() { - [[ -z $TMUX ]] && { echo "You must start tmux to use this function."; return 1; } + [[ -z $1 || -z $2 ]] && { echo "Usage: tsl "; return 1; } + [[ -z $TMUX ]] && { echo "You must start tmux to use tsl."; return 1; } local count="$1" local cmd="$2"