(zsh) fix instant prompt
This commit is contained in:
parent
8836b32fe3
commit
4c46a6bbf1
1 changed files with 12 additions and 10 deletions
|
@ -1,5 +1,17 @@
|
|||
# shellcheck disable=SC1091,SC1094,SC2206,SC2148
|
||||
|
||||
# quick note functionality
|
||||
if [[ -f "${HOME}/.note" ]]; then
|
||||
echo
|
||||
cat "${HOME}/.note"
|
||||
echo
|
||||
fi
|
||||
|
||||
# instant prompt should stay on the top
|
||||
if [[ -r "${XDG_CACHE_HOME}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "${XDG_CACHE_HOME}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
# macOS specific
|
||||
if [[ $(uname -s) = "Darwin" ]]; then
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
|
@ -48,9 +60,6 @@ else
|
|||
fi
|
||||
source ~/.local/git/zsh_modules/powerlevel10k/powerlevel10k.zsh-theme
|
||||
source "${ZDOTDIR}/p10k.zsh"
|
||||
if [[ -r "${XDG_CACHE_HOME}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "${XDG_CACHE_HOME}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
# completion
|
||||
autoload -Uz compinit
|
||||
|
@ -73,13 +82,6 @@ source "${HOME}/.local/git/zsh_modules/fast-syntax-highlighting/fast-syntax-high
|
|||
source "${HOME}/.local/git/zsh_modules/wd/wd.plugin.zsh"
|
||||
export WD_CONFIG="${XDG_CONFIG_HOME}/wd_list"
|
||||
|
||||
# quick note functionality
|
||||
if [[ -f "${HOME}/.note" ]]; then
|
||||
echo
|
||||
cat "${HOME}/.note"
|
||||
echo
|
||||
fi
|
||||
|
||||
# cleaning
|
||||
rm -rf "${HOME}/.warprc"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue