Modifying PATH with fish shell

后端 未结 5 806

I\'m currently playing around with the fish shell and I\'m having some trouble wrapping my head around how the PATH variable is set. For what it\'s worth, I\'m

5条回答
  •  独厮守ぢ
    2020-12-12 13:34

    1. Enumerate user paths:

    echo $fish_user_paths | tr " " "\n" | nl
    

    2. Append a new bin path, permanently:

    set -ga fish_user_paths my_appended_path
    

    3. Remove 7th bin search path by index: (see #1):

    set —eg fish_user_paths[7]
    

提交回复
热议问题