zsh: Switch to powerlevel10k theme
This commit is contained in:
parent
7255b2ebb3
commit
3089823b4e
1 changed files with 11 additions and 1 deletions
12
.zshrc
12
.zshrc
|
@ -1,3 +1,10 @@
|
||||||
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
|
# confirmations, etc.) must go above this block; everything else may go below.
|
||||||
|
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
|
||||||
|
|
||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
|
@ -5,7 +12,7 @@
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
|
|
||||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||||
ZSH_THEME="agnoster"
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||||
|
|
||||||
# Uncomment the following line if pasting URLs and other text is messed up.
|
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||||
# DISABLE_MAGIC_FUNCTIONS=true
|
# DISABLE_MAGIC_FUNCTIONS=true
|
||||||
|
@ -67,3 +74,6 @@ autoload -Uz compinit
|
||||||
compinit
|
compinit
|
||||||
# Completion for kitty
|
# Completion for kitty
|
||||||
kitty + complete setup zsh | source /dev/stdin
|
kitty + complete setup zsh | source /dev/stdin
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
Loading…
Add table
Reference in a new issue