Mac OS X
- Open the
.bash_profilefile in your home directory (for example,/Users/your-user-name/.bash_profile) in a text editor. - Add
export PATH="your-dir:$PATH"to the last line of the file, where your-dir is the directory you want to add. - Save the
.bash_profilefile. - Restart your terminal.
Linux
- Open the
.bashrcfile in your home directory (for example,/home/your-user-name/.bashrc) in a text editor. - Add
export PATH="your-dir:$PATH"to the last line of the file, where your-dir is the directory you want to add. - Save the
.bashrcfile. - Restart your terminal.

2103

被折叠的 条评论
为什么被折叠?



