mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 13:58:00 +00:00
Use p10k prompt
This commit is contained in:
parent
3c634f4870
commit
7b059d0859
@ -99,7 +99,7 @@ zstyle ':prezto:module:editor' key-bindings 'emacs'
|
||||
# Set the prompt theme to load.
|
||||
# Setting it to 'random' loads a random theme.
|
||||
# Auto set to 'off' on dumb terminals.
|
||||
zstyle ':prezto:module:prompt' theme 'sorinmod'
|
||||
zstyle ':prezto:module:prompt' theme 'powerlevel10k'
|
||||
|
||||
# Set how themes that use promptpwd function display the pwd, can be 'short', 'long', or 'full'
|
||||
# zstyle ':prezto:module:prompt' pwd-length 'short'
|
||||
|
11
.zshrc
11
.zshrc
@ -1,3 +1,10 @@
|
||||
# Enable Powerlevel10k instant prompt.uld 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
|
||||
|
||||
# Source Prezto.
|
||||
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
||||
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
||||
@ -9,6 +16,7 @@ export PATH=$PATH:~/bin
|
||||
setopt clobber
|
||||
zstyle ':completion:*' rehash true
|
||||
|
||||
export HISTFILE=~/.zsh_history
|
||||
export HISTFILESIZE=100000
|
||||
export HISTSIZE=100000
|
||||
|
||||
@ -111,3 +119,6 @@ autoload -U compinit && compinit
|
||||
# custom device
|
||||
|
||||
source ~/.zshrc_custom
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
Loading…
Reference in New Issue
Block a user