Add usage docs
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# Create a Tmux Dev Layout with editor, ai, and terminal
|
# Create a Tmux Dev Layout with editor, ai, and terminal
|
||||||
# Usage: tdl <c|cx|codex|other_ai>
|
# Usage: tdl <c|cx|codex|other_ai>
|
||||||
tdl() {
|
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; }
|
[[ -z $TMUX ]] && { echo "You must start tmux to use tdl."; return 1; }
|
||||||
|
|
||||||
local current_dir="${PWD}"
|
local current_dir="${PWD}"
|
||||||
@@ -32,6 +33,7 @@ tdl() {
|
|||||||
# Create multiple tdl windows with one per subdirectory in the current directory
|
# Create multiple tdl windows with one per subdirectory in the current directory
|
||||||
# Usage: tdlm <c|cx|codex|other_ai>
|
# Usage: tdlm <c|cx|codex|other_ai>
|
||||||
tdlm() {
|
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; }
|
[[ -z $TMUX ]] && { echo "You must start tmux to use tdlm."; return 1; }
|
||||||
|
|
||||||
local ai="$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)
|
# Create a multi-pane swarm layout with the same command started in each pane (great for AI)
|
||||||
# Usage: tsl <pane_count> <command>
|
# Usage: tsl <pane_count> <command>
|
||||||
tsl() {
|
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 count="$1"
|
||||||
local cmd="$2"
|
local cmd="$2"
|
||||||
|
|||||||
Reference in New Issue
Block a user