Append path to $PATH in fish shell on mac & linux
The best way I have found to persistently add a path to your $PATH
is
set-U fish_user_paths $fish_user_paths ~/path/name
This prepends to $PATH
. And since it's persistent, the path stays in $PATH
on shell restarts.
It's more efficient than putting a command in your config.fish
to modify your $PATH
, because it only runs once compared to running on every shell restart.
The variable fish_user_paths
is intended to be set by the user1, as stated by ridiculousfish, the maintainer of fish.
Option 2:
Add the line below to the file ~/.config/fish/config.fish:
set PATH $HOME/MAVProxy $PATH
相关推荐
tianhuak 2020-11-24
以梦为马不负韶华 2020-10-20
彼岸随笔 2020-10-20
yutou0 2020-10-17
applecarelte 2020-10-16
ourtimes 2020-10-16
huha 2020-10-16
lianshaohua 2020-09-23
laisean 2020-11-11
zhangjie 2020-11-11
大牛牛 2020-10-30
firefaith 2020-10-30
liguojia 2020-10-20
wangzhaotongalex 2020-10-20
CARBON 2020-10-20
lianshaohua 2020-10-20
JohnYork 2020-10-16
xiaonamylove 2020-10-16
Julyth 2020-10-16