palmer’s GUI information is correct, but there is a more maintainable way to modify the path seen by the shell. Like mediaslave said, you can edit /etc/paths
, but even better you can drop a text file in /etc/paths.d/
that has a path in it and all shells will construct the path correctly.
For example, on my system:
$ cat /etc/paths
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
$ ls /etc/paths.d
X11 git postgres
$ cat /etc/paths.d/postgres
/Library/PostgreSQL/8.4/bin
$ echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Library/PostgreSQL/8.4/bin:/usr/X11/bin:/usr/local/mysql/bin
Related Posts:
- ‘git’ is not recognized as an internal or external command
- ‘git’ is not recognized as an internal or external command
- Different between ./ , ../ , ../../ , ~/ on file path(URL) in asp.net
- How to start/stop/restart launchd services from the command line?
- Can Mac OS X be run inside Docker? [closed]
- How do I create user accounts from the Terminal in Mac OS X 10.5?
- How can I find the path to an executable in OSX
- How to restart Nginx on Mac OS X?
- Why is rsync skipping the main directory?
- Can I specify a port in an entry in my /etc/hosts on OS X? [duplicate]
- What is Xpenology? Is it Linux related thing?
- Create blank image in Imagemagick
- Google Calendar API event insert always return 404 “not found” error
- Using getline() with file input in C++
- Compiler Error “void value not ignored as it ought to be” in C programming [duplicate]
- Plot logarithmic axes with matplotlib in python
- Regex lookahead, lookbehind and atomic groups
- Why git asks to enter a commit message to explain why this merge is necessary
- What does enctype=’multipart/form-data’ mean?
- How do I remove version tracking from a project cloned from git?
- MIPS fetch address not aligned on word boundary, used .align 4, still no go
- Python can’t find my module
- Collapse all methods in Visual Studio Code
- what is difference between mp4 and mpegts?
- There is no directive with “exportAs” set to “ngForm”
- In Typescript, what is the ! (exclamation mark / bang) operator when dereferencing a member?
- Manually create a pyspark dataframe
- Couchbase query using “\uefff” break the next conditional keys
- VMWare Workstation VM not starting because of locked portion of file
- What is the difference between memoization and dynamic programming?
- Windows Activator .bat Text
- ldap_bind: Invalid Credentials (49)
- Error compiling CUDA from Command Prompt
- Java – String cannot be converted to int
- Why doesn’t Dijkstra’s algorithm work for negative weight edges?
- How do emulators work and how are they written?
- How to sign-extend a number in Verilog
- How to draw a checkmark / tick using CSS?
- c array – warning: format not a string literal
- Create Hyperlink in Slack
- How to change the Jupyter start-up folder
- How to join two tables by multiple columns in SQL?
- Java “params” in method signature?
- What should be hadoop.tmp.dir ?
- How does DHT in torrents work?
- C++ undefined reference to WinMain@16 (Code::Blocks)
- Lambda Calculus Reduction steps
- JavaScript: IIF like statement
- What is cardinality in Databases?
- What is the relationship between PyTorch and Torch?
- Error: Local workspace file (‘angular.json’) could not be found
- Cannot join on Memo, OLE, or Hyperlink Object
- Very basic inheritance: error: expected class-name before ‘{’ token
- Why doesn’t “System.out.println” work in Android?
- How can I enable Assembly binding logging?
- While running the script throws cannot find module ‘dotenv’
- What makes Lisp macros so special?
- zsh command cannot found pip
- How can I move a tag on a git branch to a different commit?
- Undo text entry in Jupyter Notebook under Win7
- Brackets : how to make autocomplete / autoindent works ?
- How do you use replace in Spyder?
- Is there a Variable Explorer for PyCharm
- Why is Node.js scalable?
- ApiNotActivatedMapError for simple html page using google-places-api
- The correct way to read a data file into an array
- HTTP status code 0 – Error Domain=NSURLErrorDomain?
- How to list all available Kafka brokers in a cluster?
- Ext.getCmp(id) or Ext.ComponentQuery.query(attribute)
- textarea’s rows, and cols attribute in CSS
- WP available widget for certain area
- Forbid contributors viewing drafts
- show taxonomy meta field in template
- WordPress permalinks and javascript redirection
- Can I move a WordPress installation to an IP (without domain name)?
- How to properly add and access a JavaScript file in WordPress?
- Edit plugin function with a hook
- Plural Forms error in Query Monitor
- How to get all the users list after you performed the hook "pre_get_users"?
- List Taxonomy terms along with their posts
- 100% uptime for a web application
- How to assign permissions to ApplicationPoolIdentity account
- Is it bad to redirect http to https?
- Using DD for disk cloning
- What tool do you use to monitor your servers?
- Sudo as different user and running screen
- What is the difference between Load Balancer and Reverse Proxy?
- Should servers be turned off at night?
- Where to check log of sendmail?
- How can I see Time-To-Live (TTL) for a DNS record?
- Rsync difference between –checksum and –ignore-times options
- Should I use tap or tun for openvpn?
- Adding a directory to $PATH in CentOS?
- nmap find all alive hostnames and IPs in LAN
- Should CNAME Be Used For Subdomains?
- How to get a .pem file from ssh key pair?
- How to inspect remote SMTP server’s TLS certificate?
- Choosing between meaningful and meaningless hostnames [closed]
- logrotating files in a directories and its subdirectories
- Multiple TXT fields for same subdomain