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

Running an init bash script on pew workon ... #216

Open
portedison opened this issue Dec 18, 2019 · 3 comments
Open

Running an init bash script on pew workon ... #216

portedison opened this issue Dec 18, 2019 · 3 comments

Comments

@portedison
Copy link

To be fair this isn't an 'issue', but wasn't sure where to ask this.

Is there a way to run a bash script every time I run pew workon ... I need to run nvm use to match the node version, and that seems the most logical place to run it.

@dmitri-theorem
Copy link

Which operating system and shell are you using?

@portedison
Copy link
Author

Mac

@dmitri-theorem
Copy link

dmitri-theorem commented Feb 12, 2020

On Catalina 10.15.2, I was able to do it by pasting the desired commands in .bashrc in my user home (~/) folder.
(The Terminal app in Catalina uses .bash_profile for startup commands, while pew uses .bashrc.)

Does that work for you?

(Edit: Actually, I guess that's a terrible solution if you use that .bashrc for anything other than pew.)

There's also an init.bash file in the library folder where pew is installed, but I wasn't able to edit that to get the desired effect.

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