Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: PATHの順番が不本意 #72

Closed
Okabe-Junya opened this issue May 12, 2023 · 2 comments · Fixed by #76
Closed

[Bug]: PATHの順番が不本意 #72

Okabe-Junya opened this issue May 12, 2023 · 2 comments · Fixed by #76
Assignees
Labels
bug Something isn't working Stale

Comments

@Okabe-Junya
Copy link
Owner

Bug description

(ローカル; M1MBPの)シェルで echo $PATH すると

$ echo $PATH
/Users/junyaokabe/.nvm/versions/node/v18.12.1/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Postgres.app/Contents/Versions/latest/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/junyaokabe/.pyenv/shims:

のようになる.(一部のみ抜粋)/usr/local/bin とかが先に来てしまっていて,そっちが優先されるので非常にまずい.

How to reproduce

zsh立ち上げて echo $PATH

Expected behavior

/etc/profile によって読み込まれるやつは最後に来てほしい.(/usr/local/bin とか)

Actual behavior

その逆になる

Environment

m1 mbp,arm64上のzsh

Additional context

No response

@Okabe-Junya Okabe-Junya added the bug Something isn't working label May 12, 2023
@Okabe-Junya Okabe-Junya self-assigned this May 12, 2023
@Okabe-Junya
Copy link
Owner Author

Okabe-Junya commented May 13, 2023

仮想環境系のパスはなんか解決した.

その他はまだ色々問題ありそう.

~  $ echo $PATH  | sed -e 's/:/\n/g' C
/Users/junyaokabe/.pyenv/shims
/Users/junyaokabe/.nodenv/shims
/Users/junyaokabe/.rbenv/shims
/Users/junyaokabe/.nvm/versions/node/v18.12.1/bin
/usr/local/bin
/System/Cryptexes/App/usr/bin
/usr/bin
/bin
/usr/sbin
/sbin
/Library/TeX/texbin
/usr/local/share/dotnet
~/.dotnet/tools
/Library/Apple/usr/bin
/Applications/Wireshark.app/Contents/MacOS
/Applications/Postgres.app/Contents/Versions/latest/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
/opt/homebrew/bin
/opt/homebrew/sbin
/opt/brew_x86/bin
/opt/brew_x86/sbin
/Users/junyaokabe/go/bin
/Users/junyaokabe/.pyenv/bin
/opt/homebrew/opt/openjdk@11/bin
/opt/homebrew/opt/llvm/bin
/Users/junyaokabe/.rbenv/bin
/opt/homebrew/opt/openssl@3/bin
/Users/junyaokabe/.fig/bin
/Users/junyaokabe/.local/bin
/Users/junyaokabe/.fzf/bin

@github-actions
Copy link

Message to comment on stale issues. If none provided, will not mark issues stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant