From 5ffdc29a08327a9a151927d208c2d504f9633683 Mon Sep 17 00:00:00 2001 From: Blaine Motsinger Date: Mon, 21 Sep 2026 20:54:18 -0400 Subject: [PATCH] GH-12: update install script for new commands --- .gitignore | 1 + completions/tmux-ws.bash | 4 ++-- completions/tmux-ws.zsh | 4 ++-- install.sh | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 1a22fb4..70b7f10 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ tags tmp .opencode docs/superpowers/ +.agents diff --git a/completions/tmux-ws.bash b/completions/tmux-ws.bash index e7d75b6..9755a21 100644 --- a/completions/tmux-ws.bash +++ b/completions/tmux-ws.bash @@ -5,7 +5,7 @@ _tmux_ws() { local config_dir="${TMUX_WS_CONFIG:-$HOME/.config/tmux-ws}" local cur="${COMP_WORDS[COMP_CWORD]}" local prev="${COMP_WORDS[COMP_CWORD-1]}" - local subcommands="create attach list kill edit init help version" + local subcommands="add launch attach list kill edit init help version" # First argument: complete subcommands if [[ $COMP_CWORD -eq 1 ]]; then @@ -16,7 +16,7 @@ _tmux_ws() { # Second argument: complete workspace names for commands that take them if [[ $COMP_CWORD -eq 2 ]]; then case "$prev" in - create|attach|kill|edit) + add|launch|attach|kill|edit) local workspaces="" for dir in "$config_dir"/*/; do [[ ! -f "$dir/workspace.conf" ]] && continue diff --git a/completions/tmux-ws.zsh b/completions/tmux-ws.zsh index 9d7cdc2..2df02e3 100644 --- a/completions/tmux-ws.zsh +++ b/completions/tmux-ws.zsh @@ -4,7 +4,7 @@ _tmux_ws() { local config_dir="${TMUX_WS_CONFIG:-$HOME/.config/tmux-ws}" - local subcommands=(create attach list kill edit init help version) + local subcommands=(add launch attach list kill edit init help version) _arguments -C \ '1:subcommand:->subcommand' \ @@ -17,7 +17,7 @@ _tmux_ws() { ;; workspace) case $words[2] in - create|attach|kill|edit) + add|launch|attach|kill|edit) local -a workspaces for dir in "$config_dir"/*/; do [[ ! -f "$dir/workspace.conf" ]] && continue diff --git a/install.sh b/install.sh index 88fa96f..9c63e5f 100755 --- a/install.sh +++ b/install.sh @@ -147,4 +147,4 @@ echo "" echo "Then:" echo " tmux-ws help # show commands" echo " tmux-ws list # see available workspaces" -echo " tmux-ws create _examples # try the example" +echo " tmux-ws launch _examples # try the example"