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.Dattorz wrote:After all, that's what $PATH is for.
Super simple script for running love projects on mac
- 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
Help us help you: attach a .love.
- 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
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
- 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
What did you do exactly? $PATH or alias? And where did you put it?
Help us help you: attach a .love.
Re: Super simple script for running love projects on mac
You can do to save logging.
Code: Select all
source ~/.bash_profile
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.
- 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
I did alias and I put it in the ~/.bash_profile file. Exactly what Lafoile said.Robin wrote:What did you do exactly? $PATH or alias? And where did you put it?
- 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
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.
- 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
Pretty sure I'm using bash...
And ~/.bashrc is an empty file. Well, it's a non-existent file.
- 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
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?
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.
- 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
Yeah it does. Do I need to reboot? Because I haven't yet. Maybe I'll try that.
- 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
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.
Who is online
Users browsing this forum: Google [Bot] and 2 guests