tmuxp
tmuxp copied to clipboard
Distracting commands before prompt
The command appears two times. One time before the prompt and the other at the prompt. Can you hide the first one? It doesn't need to be there its distracting. Should be able to remove it because tmuxinator and others doesn't have it.
Can you provide the output of tmux debug-info? The session file?
Could be shell, could tmux config, could be the tmuxp session configuration itself.
Running clear after the commands?
I removed tmux and zsh config files and started tmuxp with https://tmuxp.git-pull.com/configuration/examples.html#short-hand-inline-style. Sometimes for the second and third panes it shows up before the prompt. I tried many times with tmux kill-server and tmuxp load shorthands. Is it happening for you?
Do you get something like this?
session_name: shorthands
windows:
- window_name: long form
panes:
- shell_command:
- echo 'did you know'
- echo 'you can inline'
- shell_command: echo 'single commands'
- echo 'for panes'
-
Screenshot
~ ❯ tmuxp -V
tmuxp 1.55.0, libtmux 0.46.0
~ ❯ tmux -V
tmux 3.4
Yes it's the same.
For the behavior that tmuxinator has, what does it do? Does it show just an empty prompt? Or is all the prompts entered preserved? (It looks like tmuxp cuts the first part of the first prompt).
The terminal should look like if you opened a new terminal without tmux and the shell prompt is the first thing to appear and then you type echo 'did you know'.
Is it a bug that can be fixed?
@kocv59 To really really compare: Can you show a screenshot or video of tmuxp and tmuxinator side-by-side?
This is an area I, out of muscle memory over years, have simply gotten used to ❗.
One more thing: tmuxp doesn't really define this behavior at this time. It could. I'm interested in it.
tmuxp aims for consistent layout and structure: creation of windows and panes, the naming of sessions and windows, and making sure commands are ran.
There shouldn't be any lines before the prompt and the commands should just appear once not twice (before the prompt and at the prompt).
tmuxp aims for consistent layout and structure: creation of windows and panes, the naming of sessions and windows, and making sure commands are ran.
It does that the feature request is minor to make tmuxp more nice to use.