-
Step 1: Provide a summary of your problemAll commands in a YAML file have a " " (space, 0x20) prefixed, which breaks history for people who have bash set to omit space-prefixed commands form history. If I wanted that, specifying a space in the config would be the thing to do. Step 2: Provide tmuxp details
Step 3: Describe the problem:Steps to reproduce:
Observed Results:
Note how all the echo commands have space in front of them. Since I have |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
have you tried https://tmuxp.git-pull.com/examples.html#terminal-history, https://github.com/tmux-python/tmuxp/blob/master/examples/suppress-history.yaml session_name: shorthands
windows:
- window_name: long form
suppress_history: false
panes:
- shell_command:
- echo 'did you know'
- echo 'you can inline'
- shell_command: echo 'single commands'
- echo 'for panes' do those help in any way? |
Beta Was this translation helpful? Give feedback.
-
Yeah, that fixes the issue for me. I tried finding anything about this in the docs, but did not manage to do so before you pointed it out here. So at least it could be more discoverable (maybe strategically using the term "leading space" somewhere in the document, so fulltext search can find it). Oddly enough,m I searched for "leading space" rather than "history", hence my inability to find it. It did look intentional since wrapping commands in Personally, I find history suppression being on by default to be counter-intuitive (seeing how I can selectively do it myself with just adding leading space to the commands themselves). I guess it depends on how likely it is that you will exit/restart a command in a tmuxp-created session (I do this a lot when doing work with weechat and its plugins) vs. not wanting your history "spammed". |
Beta Was this translation helpful? Give feedback.
@klausman
have you tried
suppress_history: false
in windowshttps://tmuxp.git-pull.com/examples.html#terminal-history, https://github.com/tmux-python/tmuxp/blob/master/examples/suppress-history.yaml
do those help in any way?