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

How to run two commands? #7

Closed
OnkelTem opened this issue Aug 28, 2019 · 5 comments
Closed

How to run two commands? #7

OnkelTem opened this issue Aug 28, 2019 · 5 comments

Comments

@OnkelTem
Copy link

Hi!

I need to build a project and then reload the current browser tab. How to do both?

@eradman
Copy link
Owner

eradman commented Aug 28, 2019

If you want to run two commands you can run them together in a shell

ls *.css *.haml | entr sh -c 'make; reload-browser Firefox'

or use the -s flag

ls *.css *.haml | entr -s 'make; reload-browser Firefox'

@OnkelTem
Copy link
Author

Thanks, works perfectly.

@ghost
Copy link

ghost commented Sep 9, 2020

Hi,
when can i found reload-browser ?
Is a script or an argument of entr (because that's not in the man page !) ?

Thanks for your work.

@ghost
Copy link

ghost commented Sep 9, 2020

Sorry i respond to my self , here my reload-browser
xdotool search --name "Mozilla Firefox" key "F5"

@eradman
Copy link
Owner

eradman commented Sep 9, 2020

It looks like I accidentally removed the link from the home page. You can find the reload-browser script at

http://eradman.com/entrproject/scripts/reload-browser

Your solution looks good as well!

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