Added the p10k instant prompt stanza at the bottom of .zshrc

This commit is contained in:
2020-05-24 09:25:40 -04:00
parent aca64811f5
commit 9e28aad35b

19
.zshrc
View File

@@ -1,9 +1,3 @@
# 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.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@@ -67,13 +61,10 @@ plugins=(
)
# User configuration
# ---------------------------------------------------------------------------------------------------------------------
# ==> Source External Configs
#
source $ZSH/oh-my-zsh.sh
source $HOME/.zsh_aliases
source $HOME/.zsh_functions
@@ -84,7 +75,6 @@ source $HOME/.zsh_functions
# ---------------------------------------------------------------------------------------------------------------------
# ==> History
#
HISTFILE=$HOME/.zsh_history
HISTSIZE=50000
SAVEHIST=50000
@@ -104,7 +94,6 @@ setopt share_history
# ---------------------------------------------------------------------------------------------------------------------
# ==> KEY BINDINGS - from https://dougblack.io/words/zsh-vi-mode.html
#
bindkey -v
bindkey '^P' up-history
bindkey '^N' down-history
@@ -134,7 +123,6 @@ export KEYTIMEOUT=1
# ---------------------------------------------------------------------------------------------------------------------
# ==> FZF
#
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Include hidden files
export FZF_DEFAULT_COMMAND='find .'
@@ -145,3 +133,10 @@ PATH="$HOME/.local/bin:$HOME/bin:$PATH"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# 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