Ziyadsk / scc

An Offline cheat sheet and a quick reference command line tool for HTML, CSS and JS .
MIT License
124 stars 14 forks source link

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

Open 734MNOOB opened 5 years ago

734MNOOB commented 5 years ago

Steps to reproduce:

1. Clone the repo
git clone git@github.com: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 commented 5 years ago

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