Skip to main content

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.

1 vote
1 answer
70 views

How to find out what is changing my PATH?

OS: 14.4, shell: zsh, additional software: homebrew, vim, oh-my-zsh, iTerm2, et cetera One day I noticed that my PATH contains strange part: /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/...
Nikki Chumakov's user avatar
5 votes
3 answers
3k views

Did this command do anything to my Operating System?

I was just trying to type in this command: echo "export PATH=$PATH:~/Desktop/nand2tetris/tools" >> ~/.zshrc ; source ~/.zshrc But I got to echo "export PATH=$PATH:~/Des before I ...
AsianDora's user avatar
2 votes
0 answers
103 views

How does a Homebrew-installed Emacs get the same PATH variable as set in the shell?

I am running homebrew on an M2 Mac mini under macOS Ventura. I use Emacs.app from the railwaycat/emacsmacport/emacs-mac cask and when I check in Emacs the inherited PATH environment variable, Emacs ...
halloleo's user avatar
  • 1,417
0 votes
1 answer
44 views

Can I remove % from a $PATH definition in zsh?

issue: ping is not found: zsh: command not found: ping /sbin/ping -c 3 192.168.1.114 returns the expected result echo $PATH returns: /Users/user/Scripts:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin% ...
gatorback's user avatar
  • 3,081
1 vote
1 answer
206 views

iterm2 to honor /etc/paths with bash [duplicate]

I use Bash as my preferred shell, but the PATH values are different in my iterm2 and my Terminal (which honors my /etc/paths). How to have iterm2 to honor /etc/paths with the bash shell? More details: ...
xpt's user avatar
  • 405
1 vote
1 answer
200 views

Convert absolute paths into relative path for rsync

I try to sync to folders, but with exceptions made by tags. So I learned, that I need different commands to build up that job. First I create a file of excluded files, which have a tag in orange or ...
Peter Silie's user avatar
-1 votes
1 answer
96 views

Where does macports add itself to PATH?

I've just installed macports. The postflight script has somehow modified my PATH variable so that the macports binaries now take precedence in ways I don't like. For example, it has downgraded rustc. ...
Cornelius Roemer's user avatar
1 vote
3 answers
406 views

Asterisk in file path in MacOS Ventura

Recently I have encountered an Apple binary running on my system via Little Snitch which has an asterisk in the file path. This is not the first time I've encountered this but it is the first time I ...
dmg15's user avatar
  • 126
4 votes
1 answer
501 views

Why does iTerm no longer source ~/.bash_profile, but Mac Terminal does?

This must be something very simple, but I can't figure it out. Until recently iTerm always properly sourced .bash_profile which has: Sellotape:~ mnewman$ cat .bash_profile ## .bash_profile - Make sure ...
Buadhai's user avatar
  • 499
1 vote
2 answers
421 views

How to add Google Chrome to path?

I want to add Google Chrome to path under the google-chrome name so that I can execute the following command: google-chrome --version. First I tried with: sudo ln -s /Applications/Google\ Chrome.app/...
mångata's user avatar
  • 111
4 votes
0 answers
2k views

How to set PATH for all applications on a per-user basis?

I'm looking for a way to set the PATH environment variable for all applications that I (and only I) run under macOS (version 14 / Sonoma at the time of writing.) That sounds like it ought to be ...
Eric Anderson's user avatar
0 votes
1 answer
171 views

`ENOENT: no such file or directory` error when installing ReactJS in M1 Mac

I tried to install ReactJS on an M1 Mac but encountered this error: prabhav@Prabhavs-MacBook-Air ~ % node --version v18.17.1 prabhav@Prabhavs-MacBook-Air ~ % npm --version 9.6.7 prabhav@Prabhavs-...
冯宇乐's user avatar
1 vote
0 answers
107 views

Why is mac able to find some bin in PATH but not others?

I recently upgraded Python but encountered some strange behavior: I have both /opt/homebrew/bin and /usr/local/bin in my PATH variable. python was in both these directories. When I removed the one in /...
ron burgundy's user avatar
0 votes
2 answers
216 views

I would like to preempt a command on my mac (specifically, Keytool)

I need, when generating Java keystores (which I do frequently), to generate them under the Java 8 version of Keytool. If I use the keytool in the default Java version, they are incompatible with the ...
hbquikcomjamesl's user avatar
0 votes
1 answer
465 views

Setting different `PATH` variable for different profiles in iTerm2

I have the default PATH variable as set in the .zshrc file. I am looking for an elegant and simple way to add more directories to the PATH per different profiles in iTerm2. What would be the best way ...
GeorgeIrwin's user avatar

15 30 50 per page
1
2 3 4 5
23