0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Fish】パスを削除する方法

Posted at

パスを確認する

以下のようにパスの一覧を確認できます。

$ echo $fish_user_paths | tr " " "\n" | nl
     1  /usr/local
     2  /usr/sbin
     3  /usr/local/bin
     4  /home/username/.nodebrew/current/bin
     5  /home/username/.pyenv/shims
     6  /home/username/.pyenv/bin
     7  /home/username/.yarn/bin

パスを削除する

set -e, set --eraseを使用してパスを削除できます。
インデックスを指定して特定のパスを削除します。
インデックスは0からではなく1からです。

set -e fish_user_paths[1]

複数のパスを削除する場合には指定するべきインデックスが変更されるため、echo $fish_user_paths | tr " " "\n" | nlで確認する必要があります。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?