Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange leading whitespace before shell command #975

Open
raine opened this issue Mar 9, 2025 · 2 comments
Open

Strange leading whitespace before shell command #975

raine opened this issue Mar 9, 2025 · 2 comments

Comments

@raine
Copy link
Contributor

raine commented Mar 9, 2025

session_name: helloworld
windows:
  - window_name: dev
    start_directory: /home/parallels
    panes:
      - shell_command: "echo foo"
      - shell_command: "echo bar"

Image

If you press up to get the previous command, there is leading whitespace in the command, so it's not just a rendering issue.

tmuxp 1.55.0, libtmux 0.46.0

@raine
Copy link
Contributor Author

raine commented Mar 10, 2025

It appears to be a side effect of history suppression. If I do suppress_history: false I don't see the issue.

session_name: helloworld
windows:
  - window_name: dev
    suppress_history: false
    start_directory: /home/parallels
    panes:
      - shell_command: "echo foo"
      - shell_command: "echo bar"

raine added a commit to raine/tmux-bro that referenced this issue Mar 10, 2025
@tony
Copy link
Member

tony commented Mar 11, 2025

Hi 👋 !

Yes, this is part of suppress_history - to make it so those automated commands aren't impacting shell history, at least for zsh.

If you have a preference for a better behavior in regards to tmuxp commands not impacting shell history, I am all ears. It has been some time since that topic has been visited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants