11
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

zshでPATH環境変数の重複エントリを排除

Last updated at Posted at 2014-04-28
typeset -U path PATH

でOK。

-> % echo $PATH | tr : '\n' | sort | uniq -d | wc -l
       6
-> % echo 'typeset -U path PATH' >> ~/.zshrc
-> % zsh
-> % echo $PATH | tr : '\n' | sort | uniq -d | wc -l
       0

6個重複していたのが1個もなくなった。

参考

zshのPATHの自動重複削除や余計なPATHの削除 - @znz blog

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?