mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-23 00:18: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.
|
# Set the prompt theme to load.
|
||||||
# Setting it to 'random' loads a random theme.
|
# Setting it to 'random' loads a random theme.
|
||||||
# Auto set to 'off' on dumb terminals.
|
# 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'
|
# Set how themes that use promptpwd function display the pwd, can be 'short', 'long', or 'full'
|
||||||
# zstyle ':prezto:module:prompt' pwd-length 'short'
|
# 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.
|
# Source Prezto.
|
||||||
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
||||||
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
||||||
@ -9,6 +16,7 @@ export PATH=$PATH:~/bin
|
|||||||
setopt clobber
|
setopt clobber
|
||||||
zstyle ':completion:*' rehash true
|
zstyle ':completion:*' rehash true
|
||||||
|
|
||||||
|
export HISTFILE=~/.zsh_history
|
||||||
export HISTFILESIZE=100000
|
export HISTFILESIZE=100000
|
||||||
export HISTSIZE=100000
|
export HISTSIZE=100000
|
||||||
|
|
||||||
@ -111,3 +119,6 @@ autoload -U compinit && compinit
|
|||||||
# custom device
|
# custom device
|
||||||
|
|
||||||
source ~/.zshrc_custom
|
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