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

Parentheses/brackets around gitmux output #8

Closed
c02y opened this issue Nov 8, 2019 · 1 comment
Closed

Parentheses/brackets around gitmux output #8

c02y opened this issue Nov 8, 2019 · 1 comment

Comments

@c02y
Copy link

c02y commented Nov 8, 2019

It would nice if gitmux would put parentheses or brackets like ()/[]/<> around gitmux info, just to separate git info from other info like path, time.

Since it would need a lot more work in ~/.tmux.conf to do that for git-repo and non-git-repo

This was referenced Nov 8, 2019
@arl
Copy link
Owner

arl commented Nov 12, 2019

I answered in the other issue #7 but I'm gonna copy the answer here for the record.

I suggest you to create a simple script that calls gitmux itself, inside the script you can check if gitmux output is empty, if that's not the case place the () around gitmux output.
Then instead of calling gitmux directly in .tmux.conf you'll call your wrapper script.

I don't feel like adding a specific feature for this use case, it's too much specific to your needs, it can easily be handled outside of gitmux.

@arl arl changed the title paraenthese/brackets around gitmux info parentheses/brackets around gitmux output Nov 12, 2019
@arl arl changed the title parentheses/brackets around gitmux output Parentheses/brackets around gitmux output Nov 12, 2019
@c02y c02y closed this as completed Nov 13, 2019
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