Closed
Description
Step 1: Provide a summary of your problem
tmuxp load
with more than one configuration file returns an unrecognized arguments
error in stead of loading all
configuration files. It works just fine loading a single configuration file.
Step 2: Provide tmuxp details
% tmuxp --version
tmuxp 1.17.1, libtmux 0.15.8
% tmuxp debug-info
-------------------------
environment:
dist: macOS-12.6.1-arm64-arm-64bit
arch: arm64
uname: Darwin; Vons-PL; 21.6.0
version: Darwin Kernel Version 21.6.0: Thu Sep 29 20:13:46 PDT 2022; root:xnu-8020.240.7~1/RELEASE_ARM64_T8101
-------------------------
python version: 3.10.8 (main, Oct 13 2022, 09:48:40) [Clang 14.0.0 (clang-1400.0.29.102)]
system PATH: /Users/von/bin:/usr/local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/etc:/Users/von/.gitconf/bin:/Users/von/.antigen/bundles/zsh-users/zsh-syntax-highlighting
tmux version: 3.3
libtmux version: 0.15.8
tmuxp version: 1.17.1
tmux path: /opt/homebrew/bin/tmux
tmuxp path: /opt/homebrew/Cellar/tmuxp/1.17.1/libexec/lib/python3.10/site-packages/tmuxp
shell: /opt/homebrew/bin/zsh
-------------------------
tmux sessions:
homestuff: 4 windows (created Tue Oct 25 15:16:54 2022) (attached)
popup: 1 windows (created Tue Oct 25 15:17:02 2022) (attached)
servers: 2 windows (created Tue Oct 25 15:16:49 2022)
tmux windows:
0: popup* (2 panes) [174x41] [layout 8e1d,174x41,0,0{86x41,0,0,12,87x41,87,0,13}] @9 (active)
tmux panes:
0: [86x40] [history 38/2000, 13746 bytes] %12 (active)
1: [87x40] [history 42/2000, 11267 bytes] %13
tmux global options:
@plugin tmux-plugins/tmux-sensible
activity-action other
assume-paste-time 1
base-index 0
bell-action current
default-command ''
default-shell /opt/homebrew/bin/zsh
default-size 80x24
destroy-unattached off
detach-on-destroy off
display-panes-active-colour red
display-panes-colour blue
display-panes-time 1000
display-time 750
history-limit 2000
key-table root
lock-after-time 0
lock-command "lock -np"
message-command-style bg=black,fg=yellow
message-style bg=yellow,fg=black
mouse on
prefix C-Space
prefix2 None
renumber-windows on
repeat-time 500
set-titles on
set-titles-string "[#S/#W]"
silence-action other
status on
status-bg default
status-fg default
status-format[0] "#[align=left range=left #{E:status-left-style}]#[push-default]#{T;=/#{status-left-length}:status-left}#[pop-default]#[norange default]#[list=on align=#{status-justify}]#[list=left-marker]<#[list=right-marker]>#[list=on]#{W:#[range=window|#{window_index} #{E:window-status-style}#{?#{&&:#{window_last_flag},#{!=:#{E:window-status-last-style},default}}, #{E:window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{E:window-status-bell-style},default}}, #{E:window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{E:window-status-activity-style},default}}, #{E:window-status-activity-style},}}]#[push-default]#{T:window-status-format}#[pop-default]#[norange default]#{?window_end_flag,,#{window-status-separator}},#[range=window|#{window_index} list=focus #{?#{!=:#{E:window-status-current-style},default},#{E:window-status-current-style},#{E:window-status-style}}#{?#{&&:#{window_last_flag},#{!=:#{E:window-status-last-style},default}}, #{E:window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{E:window-status-bell-style},default}}, #{E:window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{E:window-status-activity-style},default}}, #{E:window-status-activity-style},}}]#[push-default]#{T:window-status-current-format}#[pop-default]#[norange list=on default]#{?window_end_flag,,#{window-status-separator}}}#[nolist align=right range=right #{E:status-right-style}]#[push-default]#{T;=/#{status-right-length}:status-right}#[pop-default]#[norange default]"
status-format[1] "#[align=centre]#{P:#{?pane_active,#[reverse],}#{pane_index}[#{pane_width}x#{pane_height}]#[default] }"
status-interval 15
status-justify centre
status-keys vi
status-left "[#{=18:session_name}]#{?#{==:#{client_key_table},root},,[#{client_key_table}]}"
status-left-length 20
status-left-style fg=cyan
status-position bottom
status-right "#(~/.tmux/scripts/status-right.sh)"
status-right-length 40
status-right-style fg=cyan
status-style "fg=white, bg=colour236"
update-environment[0] DISPLAY
update-environment[1] KRB5CCNAME
update-environment[2] SSH_ASKPASS
update-environment[3] SSH_AUTH_SOCK
update-environment[4] SSH_AGENT_PID
update-environment[5] SSH_CONNECTION
update-environment[6] WINDOWID
update-environment[7] XAUTHORITY
visual-activity off
visual-bell on
visual-silence off
word-separators "!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~"
tmux window options:
cursor-colour none
cursor-style default
aggressive-resize off
allow-passthrough off
allow-rename off
alternate-screen on
automatic-rename off
automatic-rename-format "#{?pane_in_mode,[tmux],#{pane_current_command}}#{?pane_dead,[dead],}"
clock-mode-colour blue
clock-mode-style 24
copy-mode-match-style bg=cyan,fg=black
copy-mode-current-match-style bg=magenta,fg=black
copy-mode-mark-style bg=red,fg=black
fill-character ''
main-pane-height 24
main-pane-width 80
mode-keys vi
mode-style bg=yellow,fg=black
monitor-activity off
monitor-bell on
monitor-silence 0
other-pane-height 0
other-pane-width 0
pane-active-border-style bg=colour236,fg=yellow
pane-base-index 0
pane-border-format "#{pane_title}"
pane-border-indicators colour
pane-border-lines single
pane-border-status bottom
pane-border-style bg=colour236,fg=yellow
pane-colours
popup-style default
popup-border-style default
popup-border-lines single
remain-on-exit off
remain-on-exit-format "Pane is dead (#{?#{!=:#{pane_dead_status},},status #{pane_dead_status},}#{?#{!=:#{pane_dead_signal},},signal #{pane_dead_signal},}, #{t:pane_dead_time})"
scroll-on-clear on
synchronize-panes off
window-active-style bg=black
window-size latest
window-style bg=colour236
window-status-activity-style reverse
window-status-bell-style reverse
window-status-current-format "#I:#W#F#{?pane_synchronized,^,}"
window-status-current-style bg=red
window-status-format "#I:#W#{?window_flags,#{window_flags}, }"
window-status-last-style default
window-status-separator " "
window-status-style default
wrap-search on
xterm-keys on
Step 3: Describe the problem:
Steps to reproduce:
- Run
tmuxp load
with multiple configuration files, e.g.:
% tmuxp load servers homestuff
usage: tmuxp [-h] [--version] [--log-level log-level]
{load,shell,import,convert,debug-info,ls,edit,freeze} ...
tmuxp: error: unrecognized arguments: homestuff
# Status: 2
Note that loading just homestuff
works fine, e.g.:
% tmuxp load homestuff
[Loading] /Users/von/.tmuxp/homestuff.yaml
homestuff is already running. Attach? [Y/n] n
Observed Results:
tmuxp returns error: unrecognized arguments
with the 2nd configuration file name.
Expected Results:
tmuxp load
should load all configuration files given on the command line and attach the last.
Relevant Code:
N/A/