Skip to content

Instantly share code, notes, and snippets.

View shengyou's full-sized avatar

Shengyou Fan shengyou

View GitHub Profile
sudo apt install chromium-browser
zplug load
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# 從 Github 安裝
zplug "zsh-users/zsh-history-substring-search"
# 從 on-my-zsh 安裝
zplug "plugins/git", from:oh-my-zsh
# 指定 tag
zplug "b4b4r07/enhancd", at:v1
# 依作業系統載入
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_DISABLE_RPROMPT=true
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir newline vcs)
# 下載檔案
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
# 安裝字型
mv PowerlineSymbols.otf ~/.local/share/fonts/
# 更新字型快取
fc-cache -vf ~/.local/share/fonts/
zplug "bhilburn/powerlevel9k", use:powerlevel9k.zsh-theme
source ~/.zplug/init.zsh
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh| zsh
sudo chsh -s $(which zsh) $(whoami)