You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
sed -i 's/ZSH_THEME=.*/ZSH_THEME="powerlevel10k\/powerlevel10k"/g'~/.zshrc
source~/.zshrc
如果有使用 poetry 與 pyenv 的話在將以下內容加入 ~/.zshrc:
export PYENV_ROOT="$HOME/.pyenv"command -v pyenv >/dev/null ||export PATH="$PYENV_ROOT/bin:$PATH"eval"$(pyenv init -)"# Restart your shell for the changes to take effect.# Load pyenv-virtualenv automatically by adding # the following to ~/.bashrc:eval"$(pyenv virtualenv-init -)"export PATH="$PATH:$HOME/.local/bin"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
由於預設的 bash shell 缺乏 語法突出顯示和自動補全,使用上有許多不便之處。
因此在本篇討論推薦使用 zsh + oh-my-zsh & p10k 作為 shell 環境,美觀又易於使用。
執行以下指令即可安裝 oh-my-zsh 與 p10k:
如果有使用 poetry 與 pyenv 的話在將以下內容加入 ~/.zshrc:
若原本 bash 環境還有其他安裝設置,需要在自行從 ~/.bashrc 中加入至 ~/.zshrc
Beta Was this translation helpful? Give feedback.
All reactions