Super simple script for running love projects on mac

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Super simple script for running love projects on mac

Post 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.
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Super simple script for running love projects on mac

Post 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
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Super simple script for running love projects on mac

Post by Robin »

What did you do exactly? $PATH or alias? And where did you put it?
Help us help you: attach a .love.
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Super simple script for running love projects on mac

Post by Lafolie »

You can do

Code: Select all

source ~/.bash_profile
to save logging.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Super simple script for running love projects on mac

Post 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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Super simple script for running love projects on mac

Post 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.)
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Super simple script for running love projects on mac

Post 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 2936 times
And ~/.bashrc is an empty file. Well, it's a non-existent file.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Super simple script for running love projects on mac

Post 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?
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Super simple script for running love projects on mac

Post by Jasoco »

Yeah it does. Do I need to reboot? Because I haven't yet. Maybe I'll try that.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Super simple script for running love projects on mac

Post 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.
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest