Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ tags
tmp
.opencode
docs/superpowers/
.agents
4 changes: 2 additions & 2 deletions completions/tmux-ws.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions completions/tmux-ws.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Loading