Skip to content

Instantly share code, notes, and snippets.

@gjlmotea
Last active July 4, 2020 19:38
Show Gist options
  • Save gjlmotea/dbefffa1e9a01d75439da8e7daa7003e to your computer and use it in GitHub Desktop.
Save gjlmotea/dbefffa1e9a01d75439da8e7daa7003e to your computer and use it in GitHub Desktop.
.zshrc with g10k
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
ZSH_DISABLE_COMPFIX=true
export ZSH="$HOME/.oh-my-zsh"
HIST_STAMPS="yyyy-mm-dd"
plugins=(git)
source $ZSH/oh-my-zsh.sh
source $ZSH_CUSTOM/themes/powerlevel10k/powerlevel10k.zsh-theme
ZSH_THEME="powerlevel10k/powerlevel10k"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# 右側
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status background_jobs history ram load time)
POWERLEVEL9K_MODE='nerdfont-complete'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment