0
votes
0answers
23 views

In MacOSX Mavericks, launching an app from the command line versus by double-clicking [duplicate]

In MacOSX Mavericks, what are the differences between launching an app by double-clicking it or through Spotlight, and from the command line? By launching an app such as Emacs from the command ...
0
votes
1answer
25 views

Set ENV variable for all commands in current directory in mac os

Is there a way to run all commands in current directory with some ENV variables predefined? Example of what I need: I put some file, say .env in my directory, with: export SECRET='abcd123' Then I ...
0
votes
0answers
20 views

Exporting Variables – Reading Them Returns Blank?

Hi – I'm using Mac OS X (Mavericks), which should be UNIX compliant. In my .bash_login, I'm exporting variables for Cocos2D-X. I know this is executing, as I have a 'echo Test' line that executes ...
4
votes
1answer
3k views

How can I set environment variables for GUI apps in OS X Mavericks?

I've been struggling to get an app to run in OS X Mavericks. I finally was able to get it to run by drilling into the .app bundle and running the shell script directly. It seems that JAVA_HOME needed ...
1
vote
4answers
118 views

Mac OS X keeps “old” environment variable around

So far I had /Applications/play-1.2.5/ added to my $PATH variable. Now I'm working with 2.2.1, which I installed in /Applications/play-2.2.1 and changed in ~/.bash_profile (which is getting sourced at ...
1
vote
2answers
1k views

Switching between Java 7 and 8 in OS X

I have installed Java-8. Now I wanted to go back to Java-7 by default so I type in... /usr/libexec/java_home -v 1.7.0_40 --exec java -version /usr/libexec/java_home -v 1.7.0_40 --exec javac -version ...
0
votes
1answer
277 views

Where Should I Set Environmental Variables For Use By Sublime Text 3

I have a Sublime Text 3 package that will only work if a particular environmental variable is set. The env is currently set in my .bash_profile, so if I launch Sublime Text from the Terminal, this env ...
1
vote
2answers
48 views

zsh AUTO_NAME_DIRS doesn't work for certain variable names on OSX

I have a wierd problem with my zsh on my OSX 10.8 (with oh-my-zsh, which I think has AUTO_NAME_DIRS set for me). Normally if I set up an environment variable to some path by export ...
0
votes
1answer
181 views

What is the difference between setting the path via editing /private/etc/paths vs ~/.profile?

I just found out I can edit my PATH by editing /etc/paths or /private/etc/paths, or by putting export PATH=$PATH:/a/path in ~/.profile or one of my other startup scrips. Is there a difference between ...
1
vote
1answer
420 views

How to fix $PATH environment on Mac OS X?

Recently, I tried to install ruby and I somewhat messed up with variable environment. As a result, I am not be able to use paths in .profile or any other path files that I set up before (I tried in ...
2
votes
2answers
62 views

Change environment variable for Mac 10.7

I would like to set the PATH on my Mac 10.7. So in /etc/launchd.conf I wrote: setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/:/usr/local/sbin/ and I restarted Mac. However when I write ...
0
votes
1answer
118 views

Installing Python wrapper for METIS: Cannot locate METIS_DLL shared library

I am planning to use Metis for drawing some networks and graphs using Python 2.7. I downloaded Metis from here. I compiled and installed the source code without any problems. For installing the Python ...
4
votes
4answers
2k views

What is the Unix PATH variable and how do I add to it?

Many programming tutorials ask users to add something to their PATH but don't explain what it is. The existing resources that explain the PATH to users new to the command line are not very good. ...
1
vote
1answer
211 views

$HOME environment variable edit

I have a question which might sound quite naive but I would like to confirm the behavior of the $HOME environment variable on the MAC OS X. I would like to know if we can append paths to the $HOME ...
1
vote
1answer
727 views

How do I set an environmental variable with a dot?

I couldn't find a way to set an environmental variable with dot (.). For example: export mule.home=/Users/chandra/mule/ export {mule.home}=/Users/chandra/mule/ export $mule.home=/Users/chandra/mule/ ...
1
vote
3answers
5k views

Editing the /etc/launchd.conf file in OS X

I am trying to run Android project using Maven in Mac 10.7.4, for that I need to set environment and path variables. This are the steps I need to follow to run android using Maven Maven 3.0.3+ ...
5
votes
4answers
3k views

Setting environment variables in OS X for GUI applications

How does one set up environment variables in Mac OS X such that they are available for GUI applications without using ~/.MacOSX/environment.plist or Login Hooks (since these are deprecated)?
0
votes
1answer
98 views

COMP_LINE not set despite bash completion being installed

I'm using homebrew's bash completion package on OSX, which is installed in /usr/local/etc/bash_completion. It's working fine, but there are many extensions for it which rely on various environment ...
0
votes
1answer
78 views

Where was environment variable set?

I've an environment variable ($M2_HOME) which I'd like to modify. The thing is, I can't find where I originally set it - this is quite bizarre as I exclusively use ~/.bash_profile. Are there any ...
2
votes
2answers
2k views

Setting proxy via http_proxy on Mac

I am using an HTTP proxy on MacOS 10.7 (which works for Safari.app, when set in the system preferences). I'm now trying to set the proxy for command-line applications using the $http_proxy environment ...
1
vote
0answers
210 views

Creating a shortcut in launcher to run a terminal command with more than one parameter as argument

How do you create a shortcut in launcher that lets you run a terminal command using more than one variable? For example, how do you create a launcher shortcut that will prompt you for varA and varB ...
1
vote
1answer
222 views

Environment variables won't take effect on Mac OS X

I've been trying back and forth to set environment variables in the Terminal.app but it won't take any effect. Here's the scenario: With the Terminal open I write pico .profile Then in the ...
4
votes
1answer
866 views

Updating Environment Variables from .MacOSX/environment.plist

After updating environment variables by modifying the environment.plist file, is there an alternative to logging out and back in again in order to reload the variables and use the new values, much ...
1
vote
1answer
169 views

strange character in my $PATH var

I'm on mac os x 10.6 aka snow leopard and I seen when I do echo $PATH some strange characters are appended to it. My path looks like: ...
2
votes
1answer
1k views

Setting JAVA_HOME environment variable

I have set java_home on my mac, by putting export JAVA_HOME=/System/Library/Frameworks/JavaVM.frameworks/Home to my ~/.profile file. I quit the terminal and ran it again. But when I typed echo ...
0
votes
4answers
511 views

Where does OS X save environment variables? [duplicate]

Possible Duplicate: Setting JAVA_HOME environment variable When you type "echo $JAVA_HOME" in Mac, where does Mac look to find the value of JAVA_HOME? In other words where does Mac save ...
1
vote
1answer
204 views

Why PATH variable is different between 'launching from command line' and 'click the icon' in Mac OS X?

As I asked in here, I learned that the environment variable of PATH is different depending on how I launch the app. Using 'aquamacs' from command line is run on top of bash, so the PATH variable is ...
4
votes
3answers
3k views

Setting environment variables Mac 10.6 [duplicate]

Possible Duplicate: What are PATH and other environment variables, and how can I set or use them? How to set an environment variable in Mac OS 10.6. I am finding it difficult or the options ...
2
votes
2answers
658 views

mac, when adding environmental variables using 'export ABC=/var/blah/ where is this stored?

when adding env varialbes like: export JAVA_HOME=/usr/java/skd/bin where is this stored if I want to edit it later? is it a file somewhere?
2
votes
3answers
524 views

macbook, messed up my .profile and now no commands work like nano, rm, etc

I messed up a .profile and now I can't even get nano to work. I was trying to add git to my environment variable whenever I start terminal, and I messed the command up obviously and no nothing works. ...
1
vote
3answers
5k views

Setting environment variables in OS X /etc/launchd.conf

I'm trying to set some env variable in OS X 10.6 (/etc/launchd.conf) setenv M2_HOME /usr/share/maven setenv M2 $M2_HOME/bin setenv MAVEN_OPTS '-Xms256m -Xmx512m' M2 and MAVEN_OPTS are not working. ...
0
votes
3answers
441 views

How to run a command from anywhere in Mac OS X

I need to use a command for converting my images to pvrtc. It is located in /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool. Right now I have to be inside that folder to be able ...
4
votes
4answers
5k views

Spawn a new terminal window (Mac OS X)?

I am often working in a process in the Terminal and I've set some variables and used cd and so forth. Then I'd like to open another Terminal window from there. Is there any way to do this?
4
votes
2answers
16k views

How do I reset the $PATH variable on Mac OS X?

I've messed up my path variable, and now some apps that I run raise errors saying Command Not Found (error 127) for commands like date and sleep. These commands work fine when executed directly in the ...
1
vote
4answers
1k views

Shell environment for su

I have some aliases and modifications to ls that I'd like available at all times. Is it possible to set environment variables for use when I am logged in as root after I sudo up with sudo su?
1
vote
1answer
946 views

Basic *nix Question (Mac OS X): Where is my path being set?

I have a path that starts like this PATH=/opt/subversion:/usr/bin:/bin:/usr/sbin:/sbin [etc] and this is wrong (at least opt/subversion needs to be opt/subversion/bin). Where is this being set? I ...
8
votes
7answers
4k views

$PATH in Vim doesn't match Terminal

I'm using MacVim and when I don't launch it from the Terminal (mvim) its $PATH does not include what I have set in my .bash_profile. It only seems to have the default values, ...