我在 OS X 上用 Fish shell 搞砸了我的路径变量。这是$PATH
中的正确变量吗config.fish
?
user@host ~> more ~/.config/fish/config.fish
set -g -x PATH /usr/local/bin $PATH
set -g -x fish_greeting 'Welcome to fish shell, Ansel'
user@host ~> more /etc/paths
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
e202414@TWC-MACS1DF91 ~> echo $PATH
/usr/local/bin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /opt/X11/bin