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

Default options for CLI commands (update/install) #130

Open
dagadbm opened this issue Jan 3, 2023 · 9 comments
Open

Default options for CLI commands (update/install) #130

dagadbm opened this issue Jan 3, 2023 · 9 comments

Comments

@dagadbm
Copy link

dagadbm commented Jan 3, 2023

I automate most of my dotfiles including updating them and everytime I update tmux I have to see the tmux-thumbs screen and always press option 1 (compile).

It would be nice if this CLI command could accept a default option.

something like

./tmux-thumbs-install.sh update --compile

or

./tmux-thumbs-install.sh update --download

This would make the update process silent and just compile without always having to ask if we want to update or not.

@dagadbm dagadbm changed the title Default option to CLI instalation Default options for CLI commands (update/install) Jan 3, 2023
@fcsonline
Copy link
Owner

I'm facing the same! I will add it!

@fcsonline
Copy link
Owner

Thinking about it, maybe it's better to have an Environment variable to control this. What do tou think?

@dagadbm
Copy link
Author

dagadbm commented Jan 5, 2023 via email

@dagadbm
Copy link
Author

dagadbm commented Jan 18, 2023

I thought about this a bit more and honestly anything is enough, even the env var because you can just easily prepend the command with it.

@fcsonline
Copy link
Owner

I have to battle test a bit more this branch but you can check it out: #133

@dagadbm
Copy link
Author

dagadbm commented Jan 20, 2023 via email

@fcsonline
Copy link
Owner

You can checkout the source code and run the script passing the env variable described in the Readme.

@dagadbm
Copy link
Author

dagadbm commented Jan 27, 2023

Looks ok to me ;)

@dagadbm
Copy link
Author

dagadbm commented May 29, 2024

hello! just circling back on this to see if this will indeed make it to main or not.

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