Page 2 of 3

Re: Super simple script for running love projects on mac

Posted: Sat Jun 15, 2013 5:51 pm
by Robin
Dattorz wrote:After all, that's what $PATH is for.
Not really. $PATH is more for directories that contain a lot of executables, and preferably only executables, like /bin, /usr/bin and user-defined ones like ~/bin (or in my case, ~/Hacking/bin). Making an alias to LÖVE is probably better in this case.

Re: Super simple script for running love projects on mac

Posted: Sun Jun 16, 2013 9:59 am
by Jasoco
See, it doesn't seem to work. Unless I need to reboot first. I get an error..

Code: Select all

~ > love
-bash: love: command not found

Re: Super simple script for running love projects on mac

Posted: Sun Jun 16, 2013 12:04 pm
by Robin
What did you do exactly? $PATH or alias? And where did you put it?

Re: Super simple script for running love projects on mac

Posted: Sun Jun 16, 2013 7:02 pm
by Lafolie
You can do

Code: Select all

source ~/.bash_profile
to save logging.

Re: Super simple script for running love projects on mac

Posted: Mon Jun 17, 2013 8:05 am
by Jasoco
Robin wrote:What did you do exactly? $PATH or alias? And where did you put it?
I did alias and I put it in the ~/.bash_profile file. Exactly what Lafoile said.

Re: Super simple script for running love projects on mac

Posted: Mon Jun 17, 2013 9:11 am
by Robin
Maybe it does work if you put it in ~/.bashrc instead. (Also, the shell you're using is bash, right? Easy way to check: type a closing parenthesis and then enter. If you get bash: syntax error near unexpected token `)' back, you're using bash.)

Re: Super simple script for running love projects on mac

Posted: Mon Jun 17, 2013 10:08 am
by Jasoco
Pretty sure I'm using bash...
Screen Shot 2013-06-17 at 6.06.08 AM.png
Screen Shot 2013-06-17 at 6.06.08 AM.png (36.75 KiB) Viewed 2935 times
And ~/.bashrc is an empty file. Well, it's a non-existent file.

Re: Super simple script for running love projects on mac

Posted: Mon Jun 17, 2013 12:13 pm
by Robin
Oh, huh.

Well.

Hm.

And it still doesn't work like that?

If you run the command alias, does it have alias love=... in there somewhere?

Re: Super simple script for running love projects on mac

Posted: Mon Jun 17, 2013 12:20 pm
by Jasoco
Yeah it does. Do I need to reboot? Because I haven't yet. Maybe I'll try that.

Re: Super simple script for running love projects on mac

Posted: Mon Jun 17, 2013 12:26 pm
by Robin
Well, if it shows up as an alias, your bash should recognize it already. Are you sure that it is the right path to your LÖVE executable? Otherwise, I'm stumped.