Commands don't run when loading a session
nickconway opened this issue · 2 comments
nickconway commented
Step 1: Provide a summary of your problem
Commands don't run when loading a session file.
Step 2: Provide tmuxp details
~
➜ tmuxp debug-info
-------------------------
environment:
dist: Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with-glibc2.29
arch: x86_64
uname: Linux; DESKTOP; 5.15.79.1-microsoft-standard-WSL2
version: #1 SMP Wed Nov 23 01:01:46 UTC 2022
-------------------------
python version: 3.8.10 (default, Nov 14 2022, 12:59:47) [GCC 9.4.0]
system PATH: /home/nick/.nvm/versions/node/v19.2.0/bin:/home/nick/go/bin:/usr/local/go/bin:/home/nick/.autojump/bin:/home/nick/.cargo/bin/:/home/nick/.emacs.d/bin/:/home/nick/.local/bin:/home/nick/bin:/home/nick/.config/bin:/home/nick/.autojump/bin:/home/nick/.cargo/bin/:/home/nick/.emacs.d/bin/:/home/nick/.local/bin:/home/nick/bin:/home/nick/.config/bin:/home/nick/.autojump/bin:/home/nick/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Common Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common Files/Intel/Shared Libraries/redist/intel64/compiler:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/usbipd-win/:/mnt/c/Program Files/GitHub CLI/:/mnt/c/Program Files/PuTTY/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/AutoHotkey:/mnt/c/Program Files (x86)/Tailscale IPN:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Git/mingw64/bin:/mnt/c/Program Files/Git/usr/bin:/mnt/c/Users/nickc/scoop/shims:/mnt/c/Users/nickc/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/nickc/AppData/Local/Programs/Microsoft VS Code Insiders/bin:/mnt/c/Users/nickc/Dropbox/Documents/Komorebi
tmux version: 3.3
libtmux version: 0.16.1
tmuxp version: 1.19.1
tmux path: /usr/local/bin/tmux
tmuxp path: /home/nick/.local/lib/python3.8/site-packages/tmuxp
shell: /usr/bin/zsh
-------------------------
tmux sessions:
0: 1 windows (created Sun Dec 18 23:27:18 2022) (attached)
tmux windows:
0: python3* (1 panes) [200x59] [layout d09d,200x59,0,0,0] @0 (active)
tmux panes:
0: [200x59] [history 5/5000, 4605 bytes] %0 (active)
tmux global options:
@continuum-save-last-timestamp 1671424038
@mode_indicator_copy_mode_style bg=default,fg=red
@mode_indicator_empty_mode_style "bg=default,fg=#5c6370"
@mode_indicator_prefix_mode_style bg=default,fg=cyan
@mode_indicator_sync_mode_style bg=default,fg=yellow
@plugin tmux-plugins/tmux-continuum
@resurrect-capture-pane-contents on
@resurrect-restore-script-path /home/nick/.tmux/plugins/tmux-resurrect/scripts/restore.sh
@resurrect-save-script-path /home/nick/.tmux/plugins/tmux-resurrect/scripts/save.sh
@resurrect-strategy-irb default_strategy
@resurrect-strategy-mosh-client default_strategy
@resurrect-strategy-nvim session
@resurrect-strategy-vim session
activity-action other
assume-paste-time 1
base-index 0
bell-action any
default-command ''
default-shell /usr/bin/zsh
default-size 80x24
destroy-unattached off
detach-on-destroy on
display-panes-active-colour red
display-panes-colour blue
display-panes-time 1000
display-time 750
history-limit 5000
key-table root
lock-after-time 0
lock-command "lock -np"
message-command-style bg=black,fg=yellow
message-style "fg=#5c6370,bg=default"
mouse on
prefix C-Space
prefix2 None
renumber-windows on
repeat-time 1000
set-titles off
set-titles-string "#S:#I:#W - \"#T\" #{session_alerts}"
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 2
status-justify centre
status-keys emacs
status-left "%Y-%m-%d %H:%M"
status-left-length 200
status-left-style default
status-position bottom
status-right "#(/home/nick/.tmux/plugins/tmux-continuum/scripts/continuum_save.sh)#H #[default]#{?#{!=:#(tmux show-option -t #S -qv @mode_indicator_custom_mode_style),},#[#(tmux show-option -t #S -qv @mode_indicator_custom_mode_style)],#{?client_prefix,#[bg=default]#[fg=cyan],#{?pane_in_mode,#[bg=default]#[fg=red],#{?pane_synchronized,#[bg=default]#[fg=yellow],#[bg=default]#[fg=#5c6370]}}}}#{?#{!=:#(tmux show-option -t #S -qv @mode_indicator_custom_prompt),},#(tmux show-option -t #S -qv @mode_indicator_custom_prompt),#{?client_prefix, WAIT ,#{?pane_in_mode, COPY ,#{?pane_synchronized, SYNC , TMUX }}}}#[default]"
status-right-length 200
status-right-style default
status-style "fg=#5c6370,bg=default"
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 off
visual-silence off
word-separators "!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~"
tmux window options:
aggressive-resize on
allow-rename off
alternate-screen on
automatic-rename on
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
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 fg=white
pane-base-index 0
pane-border-format "#{?pane_active,#[reverse],}#{pane_index}#[default] \"#{pane_title}\""
pane-border-lines single
pane-border-status off
pane-border-style fg=colour236
pane-colours
remain-on-exit off
synchronize-panes off
window-active-style default
window-size latest
window-style default
window-status-activity-style reverse
window-status-bell-style reverse
window-status-current-format " #W "
window-status-current-style "fg=colour235,bg=#5c6370"
window-status-format " #W "
window-status-last-style default
window-status-separator " "
window-status-style "fg=#5c6370,bg=default"
wrap-search on
xterm-keys on
Step 3: Describe the problem:
Steps to reproduce:
- tmuxp load koui3
Observed Results:
Windows are created and commands are echoed but not ran.
Expected Results:
Commands should be ran in the windows.
Relevant Code:
session_name: koui3
windows:
- window_name: Editor
layout: tiled
shell_command_before:
- cd ~/koui3
panes:
- shell_command:
- nvim
- window_name: Server
layout: tiled
shell_command_before:
- cd ~/koui3
panes:
- shell_command:
- nvm use 16.15.1
- ng serve
nickconway commented
This was due to oh-my-zsh tmux plugin.
tony commented
@nickconway Thank you for the follow up!
If you know what specific part of oh-my-zsh feel free to let us know
Have a happy new year
