Questions tagged [path]

The concept that software will look in several folders, in the order stored as the path, to find which programs should be allowed to run.

Although the path variable is something that is set in the (or shell) portion of OS X due to it's UNIX heritage, the concept of a PATH is explicitly rejected by the Finder and the graphical user interface on the Mac.

Yes, the standard convention is to place programs in the /Applications folder for system apps and ~/Applications for user-specific apps, but the Finder will execute any program that is selected to open by double clicking the icon for the app or selecting it and choosing Open... from the finder File menu.

Note that path can also be used in the sense of the complete absolute directory and file name in the file system or URL

319 questions
189
votes
5 answers

Open Finder window from current Terminal location?

If I am in a specific path in a Terminal window, how can I open that same window in a new Finder window? Note: This is the opposite of opening a Terminal from Finder.
Jim McKeeth
  • 4,485
  • 12
  • 39
  • 61
100
votes
13 answers

Why does my brew installation not work?

I installed brew before, but it does not work now. When I run brew, it gives me the error -bash: brew: command not found So I tried to reinstall using the code ruby -e "$(curl -fsSL…
cindywmiao
  • 1,123
  • 2
  • 8
  • 5
90
votes
1 answer

How to remove an environment variable on OSX using bash

I'm running under Snow Leopard 10.6.8 and I recently added an environment variable which it seems to be messing my bash terminal (I guess). What I did is add the variable DYLD_LIBRARY_PATH=/Library/PostgreSQL/9.2/lib to my .bash_profile file, which…
Carlos G
  • 1,011
  • 1
  • 7
  • 4
89
votes
8 answers

How to set PATH for Finder-launched applications

Apps launched via Finder seem to not respect the PATH as set in .bash_profile. So when I try to run code from an IDE (Intellij) I no longer have access to programs in /usr/local/bin, which is normally added to my path in the Terminal. Apparently…
Caffeine Coma
  • 1,773
  • 1
  • 19
  • 22
82
votes
3 answers

How to change path in Finder by entering the path manually?

It seems that by default there is no way to enter a whole path in the Finder, so instead one should traverse through all the tree to get somewhere deep in the filesystem. Is there anyway to overcome this problem? If there is no GUI for it in the…
aligf
  • 1,015
  • 2
  • 8
  • 7
26
votes
2 answers

Amending PATH so that /usr/local/bin is ahead of /usr/bin

I'm trying to install brew but get the following warning: Warning: /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. The following tools exist at both…
threenovation
  • 269
  • 1
  • 3
  • 3
23
votes
6 answers

How do I change the location of macOS screen captures?

As a developer, I take a lot of screen captures. I often take screen shots to share with Stack Exchange members in chat. The problem is my Desktop is so cluttered with screen captures that they're now overlapping! I'd like to save all screenshots in…
Josh
  • 8,449
  • 15
  • 40
  • 59
19
votes
6 answers

I broke my PATH by editing my ~/.bash_profile and Bash will not recognize most commands

in .bash_profile I accidentally set the path to: PATH="~/Tools/apache-maven-3.3.3/bin" and now the default path is gone. Nothing in Terminal works anymore: Korays-MacBook-Pro:~ koraytugay$ ls -bash: ls: command not found Korays-MacBook-Pro:~…
Koray Tugay
  • 1,244
  • 4
  • 14
  • 28
18
votes
3 answers

What are the downsides of putting GNU coreutills first in ${PATH}?

I'm coming from Linux to macOS, and many of my scripts assume GNU versions of the utils provided in GNU coreutils. I could just put the GNU coreutils bin directory in earlier in $PATH than /bin. Is this commonly done? If I do it, what…
Tom Hale
  • 311
  • 1
  • 8
17
votes
3 answers

Where is my .bash_profile located? (Mac OS 10.10.5)

Disclamer: I am a newbie to UNIX programming. I downloaded Anaconda but then realized that I did not need it. I deleted and uninstalled it as fully as I could find out how. It seems that everything to do with Anaconda is gone except that the $PATH…
Darcy
  • 353
  • 1
  • 2
  • 6
17
votes
3 answers

How to use /etc/paths.d to add executable files to my path?

I am trying to use /etc/paths.d to add an executable to my path variable but I have no success so far. The full path of the executable file is: /opt/ImageMagick/bin/convert /etc/paths.d contains two files: 40-XQuartz and ImageMagick The 40-XQuartz…
skiabox
  • 937
  • 6
  • 11
  • 23
16
votes
3 answers

In OSX Yosemite, why can I set many environment variables for GUI apps, but cannot set the specific variable PATH

After I had sorted out OSX' PATH issues up to the Mavericks release, the problems come back in Yosemite!!! So I want to mimic the old launch.conf feature in the new Mac OSX 10.10 Yosemite release, in order to have the PATH environment variable in…
halloleo
  • 1,230
  • 1
  • 13
  • 28
14
votes
4 answers

How to change PATH environment variable to OS X 10.8 Mountain Lion that will be visible to GUI applications?

I tried all methods I heard of for setting environment variables on OS X 10.8 but none of them seems to work. To test, run a bash script from inside a gui application like Eclipse or IntelliJ IDEA. #!/bin/bash set|grep PATH Things I tested and that…
sorin
  • 28,475
  • 65
  • 162
  • 235
14
votes
5 answers

How can I add a path to the PATH environment variable?

I want to add a path to the PATH environment variable? I have tried with export PATH=/mypath:$PATH and it works. But the next time I start the Terminal, my new path is not int the PATH environment variable any more. How can I add a path to the…
Jonas
  • 5,813
  • 10
  • 31
  • 34
13
votes
4 answers

Reset your PATH variable

I stuffed up (basically wiped) my PATH variable. Is there any way to reset it to the default? I look at How do I reset the $PATH variable on Mac OS X?, but I find it very confusing. As far as I know I stuffed up my ~/.profile file.
Jaco Pretorius
  • 243
  • 1
  • 2
  • 7
1
2 3
21 22