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

Similar to other Mac user - does not install. #5

Open
734MNOOB opened this issue Dec 29, 2018 · 1 comment
Open

Similar to other Mac user - does not install. #5

734MNOOB opened this issue Dec 29, 2018 · 1 comment

Comments

@734MNOOB
Copy link

Steps to reproduce:

1. Clone the repo
git clone [email protected]:Ziyadsk/scc.git
cd scc/
sudo sh ./install.sh

Restart Terminal

2. Try and run a command
scc -h (returns `-bash: scc: command not found`)
scc -js array.map (returns `-bash: scc -js array.map: command not found`)
3. Check if ~/.bashrc and ~/.zshrc have necessary info:

In ~/.bashrc has

export PATH="/Users/teamnoob/bin:/usr/local/bin:/usr/local/bin:/usr/bin/git:/usr/bin:/usr/local/sbin:/usr/local/opt/make/libexec/$
alias scc='/Users/teamnoob/.scc/scc.py'

in ~/.zshrc has

export PATH="/Users/teamnoob/bin:/usr/local/bin:/usr/local/bin:/usr/bin/git:/usr/bin:/usr/local/sbin:/usr/local/opt/make/libexec/$
alias scc='/Users/teamnoob/.scc/scc.py'

Restart Terminal again

No luck :'(

@CosmicHorrorDev
Copy link
Contributor

CosmicHorrorDev commented Jan 7, 2019

Disclaimer: I've never used a mac so my advice may need to be tweaked.

With that said my best guess is that your .bashrc file isn't being sourced since it looks like your shell is bash and the file looks fine.

To manually source it you can run . ~/.bashrc or the equivalent source ~/.bashrc and then test running scc. To source it every time you open a terminal you can add . ~/.bashrc to your ~/.bash_profile file, creating the file if needed.

Hopefully that fixes the issue, the install script is a bit hacky and could definitely be improved.

Edit: Fixed my formatting

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