Closed3
VSCodeでZshの表示がおかしい

症状
VSCode 標準のzshで、以下のエラーが出てなんか表示がダサくなる。
/home/paseri/.zshrc:18: command not found: sheldon
/home/paseri/.zshrc:60: command not found: mise
/home/paseri/.zshrc:63: command not found: starship
(.venv) PASERI-DESKTOP%
環境
zshカスタマイズが色々入っている。sheldon・mise・starshipが入ってる。
# anything
if [ -f ~/.profile ] ; then
. ~/.profile
fi
if [ -f ~/.bashrc ] ; then
. ~/.bashrc
fi
exec zsh
. "$HOME/.cargo/env"
原因候補
bashからじゃなくてzshを直接起動するとまずいとか?

2環境でPATHを比較すると、含まれている値が違う。
- /home/paseri/.local/share/mise/installs/node/22/bin:
- /home/paseri/.local/share/mise/installs/usage/latest/bin:
- /home/paseri/.local/share/mise/installs/bun/latest/bin:
- /home/paseri/.local/share/mise/installs/deno/latest/bin:
- /home/paseri/.local/share/mise/installs/deno/latest/.deno/bin:
- /home/linuxbrew/.linuxbrew/bin:
- /home/linuxbrew/.linuxbrew/sbin:
- /home/paseri/.local/bin:

.profile
だけにbrewの設定情報が書かれていた.
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
.zshrcに転記して対処
このスクラップは2024/08/10にクローズされました