LoginSignup
11
7

More than 3 years have passed since last update.

fish で $PATH 設定(追加、確認、削除)

Last updated at Posted at 2019-08-26
Add path:
  export PATH=$HOME/.nodebrew/current/bin:$PATH

nodebrew 使いたくて上みたいに出てきたときに、fish でやる方法。

追加

$ set -U fish_user_paths $HOME/.nodebrew/current/bin $fish_user_paths

確認

$ echo $fish_user_paths | tr " " "\n" | nl
     1  /Users/mochizuki/.nodebrew/current/bin
     2  /usr/local/opt/fzf/bin

これでインデックスが見れる

削除

たとえばインデックスが 3 だとすると

$ set --erase --universal fish_user_paths[3]

参考

11
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
7