Set the PATH of the fish shell environment variable

Source: Internet
Author: User

In ubuntu linux, the path environment variable of the fish shell is slightly different from that of the default bourne shell (bash) environment variable. We know that export is used for the default bash environment variable settings. for example, if we want to add the directory/usr/matlab/bin and/home/aborn/scripts to environment variable 1) for bash modification ~ /. Add the following lines to the bashrc file: [plain] export PATH = "$ PATH:/usr/matlab/bin: /home/aborn/scripts "Finally, use the following command on the command line to make the preparation file take effect: [plain] source ~ /. Bashrc 2) for the fish shell, use the set-x command to modify the file (~ /. Config/fish/config. fish): [plain] sudo vi ~ /. Config/fish/config. add fish to the last line: note that the two directories are separated by spaces [html] set-x PATH/usr/matlab/bin/home/aborn/scripts. Then, you can re-enable the fish.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.