dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit de7ceb229da022691db0500c7e4a471e5247a197
parent ec770745451f3742fbbd4f20df50c0d08353b043
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Thu,  9 Sep 2021 16:00:42 +0200

zsh: move instant prompt to very top

Diffstat:
Mshell/zshrc | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/shell/zshrc b/shell/zshrc @@ -1,6 +1,4 @@ # -*- mode: shell-script; -*- -# ZSH-specific inits -. "$DOTFILES"/shell/rc # 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. @@ -8,6 +6,9 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi +# ZSH-specific inits +. "$DOTFILES"/shell/rc + source_if_exists() { [ -f "$1" ] && . "$1"; } # Options @@ -118,5 +119,4 @@ zle -N _zsh_cli_fg bindkey '^Z' _zsh_cli_fg test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" - source_if_exists $DOTFILES/shell/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh