diff options
| author | Shohei YOSHIDA <syohex@gmail.com> | 2026-03-14 00:17:55 +0900 |
|---|---|---|
| committer | Shohei YOSHIDA <syohex@gmail.com> | 2026-03-14 00:17:55 +0900 |
| commit | f1153d7a9dddc5f1da3245d9dc62a83d88c20476 (patch) | |
| tree | 3330700b40574b46d6c44ac7255209dbdd72504c | |
| parent | Merge pull request #1232 from zsh-users/fix-format (diff) | |
| download | zsh-completions-refactor_tmuxp.tar zsh-completions-refactor_tmuxp.tar.gz zsh-completions-refactor_tmuxp.tar.bz2 zsh-completions-refactor_tmuxp.tar.lz zsh-completions-refactor_tmuxp.tar.xz zsh-completions-refactor_tmuxp.tar.zst zsh-completions-refactor_tmuxp.zip | |
add command name prefix to functionsrefactor_tmuxp
| -rw-r--r-- | src/_tmuxp | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -93,8 +93,8 @@ _tmuxp() { && ret=0 ;; (shell) - local sessions="$(__tmux_sessions)" - local windows="$(__tmux_windows)" + local sessions="$(__tmuxp_tmux_sessions)" + local windows="$(__tmuxp_tmux_windows)" _arguments \ '(- *)'{-h,--help}'[show help message and exit]' \ '-S[pass-through for tmux -S]: :_files' \ @@ -179,15 +179,13 @@ __tmuxp_import() { esac } -__tmux_sessions () { - local tmux_sessions - tmux_sessions=($(_call_program tmux_sessions 'tmux ls -F "#{session_name}"')) +__tmuxp_tmux_sessions() { + local tmux_sessions=($(_call_program tmux_sessions 'tmux ls -F "#{session_name}"')) echo $tmux_sessions } -__tmux_windows () { - local tmux_windows - tmux_windows=($(_call_program tmux_sessions 'tmux ls -F "#{window_name}"')) +__tmuxp_tmux_windows() { + local tmux_windows=($(_call_program tmux_sessions 'tmux ls -F "#{window_name}"')) echo $tmux_windows } |
