Add p10k prompt with jj status.
This commit is contained in:
1831
zsh/.p10k.zsh
Normal file
1831
zsh/.p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
13
zsh/.zshrc
13
zsh/.zshrc
@@ -1,3 +1,8 @@
|
|||||||
|
# Enable Powerlevel10k instant prompt (must be at the very top)
|
||||||
|
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
|
||||||
|
|
||||||
HISTFILE=~/.histfile
|
HISTFILE=~/.histfile
|
||||||
HISTSIZE=100000
|
HISTSIZE=100000
|
||||||
SAVEHIST=100000
|
SAVEHIST=100000
|
||||||
@@ -9,12 +14,12 @@ setopt SHARE_HISTORY # share history across sessions
|
|||||||
|
|
||||||
bindkey -e # emacs bindings
|
bindkey -e # emacs bindings
|
||||||
|
|
||||||
# Plugins (zsh-autocomplete must come before compinit; it calls compinit itself)
|
# Completion
|
||||||
source /usr/share/zsh/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh
|
autoload -Uz compinit && compinit
|
||||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
|
|
||||||
# Simple prompt
|
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
||||||
PROMPT='%F{magenta}%* %F{cyan}%~ %(?.%F{green}.%F{red})%#%f '
|
[[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
|
||||||
|
|
||||||
# PATH configuration
|
# PATH configuration
|
||||||
PATH=$PATH:~/.npm-global/bin
|
PATH=$PATH:~/.npm-global/bin
|
||||||
|
|||||||
Reference in New Issue
Block a user