diff options
| author | Daniel R. Neal <dan.r.neal@gmail.com> | 2025-12-22 04:31:21 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-22 13:31:21 +0100 |
| commit | 0f45f82c0afdcaf71b193e349d01c069a3fb9de7 (patch) | |
| tree | 5d57819e97b4500debe2faae2e29fe227095edf6 /plugins/tmux | |
| parent | 129aeee6bcfcbb149598f69b2054ff1ddc73ec5e (diff) | |
| download | zsh-0f45f82c0afdcaf71b193e349d01c069a3fb9de7.tar.gz zsh-0f45f82c0afdcaf71b193e349d01c069a3fb9de7.tar.bz2 zsh-0f45f82c0afdcaf71b193e349d01c069a3fb9de7.zip | |
feat(tmux): add 'to' alias for session attachment (#13479)
Diffstat (limited to 'plugins/tmux')
| -rw-r--r-- | plugins/tmux/README.md | 1 | ||||
| -rw-r--r-- | plugins/tmux/tmux.plugin.zsh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/tmux/README.md b/plugins/tmux/README.md index 39c57f846..aaa81aa17 100644 --- a/plugins/tmux/README.md +++ b/plugins/tmux/README.md @@ -23,6 +23,7 @@ The plugin also supports the following: | `tkss` | tmux kill-session -t | Terminate named running tmux session | | `tksv` | tmux kill-server | Terminate all running tmux sessions | | `tl` | tmux list-sessions | Displays a list of running tmux sessions | +| `to` | tmux new-session -A -s | Create or attach to a named tmux session | | `tmux` | `_zsh_tmux_plugin_run` | Start a new tmux session | | `tmuxconf` | `$EDITOR $ZSH_TMUX_CONFIG` | Open .tmux.conf file with an editor | | `ts` | tmux new-session -s | Create a new named tmux session | diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index 4c184c2d0..b1d97e98f 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -81,6 +81,7 @@ alias tmuxconf='$EDITOR $ZSH_TMUX_CONFIG' _build_tmux_alias "ta" "attach" "-t" _build_tmux_alias "tad" "attach -d" "-t" +_build_tmux_alias "to" "new-session -A" "-s" _build_tmux_alias "ts" "new-session" "-s" _build_tmux_alias "tkss" "kill-session" "-t" |
