config(zsh): optimize p10k

main
sudo pacman -Syu 2024-01-24 00:21:20 +07:00
parent c27e4af7de
commit 5c99eca1df
2 changed files with 12 additions and 11 deletions

View File

@ -1,6 +1,18 @@
# vim: set filetype=zsh:
# Put this on bottom of ~/.zshrc
# Alias
alias g="git"
alias moe="make"
alias meo="make"
# https://github.com/romkatv/powerlevel10k#how-do-i-configure-instant-prompt
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
# https://github.com/romkatv/powerlevel10k#mitigation
typeset -g POWERLEVEL9K_TERM_SHELL_INTEGRATION=true
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
# https://www.topbug.net/blog/2016/09/27/make-gnu-less-more-powerful/
export LESS="-RF -i -K -s -x2 --wordwrap"
@ -55,11 +67,6 @@ if command -v fzf &>/dev/null; then
fi
fi
# Alias
alias g="git"
alias moe="make"
alias meo="make"
# https://github.com/BurntSushi/ripgrep
if command -v rg &>/dev/null; then
export RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/ripgreprc"

View File

@ -39,12 +39,6 @@ DISABLE_LS_COLORS="true"
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#disable_untracked_files_dirty
DISABLE_UNTRACKED_FILES_DIRTY="true"
# https://github.com/romkatv/powerlevel10k#how-do-i-configure-instant-prompt
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
# https://github.com/romkatv/powerlevel10k#mitigation
typeset -g POWERLEVEL9K_TERM_SHELL_INTEGRATION=true
# https://github.com/zsh-users/zsh-autosuggestions#suggestion-strategy
typeset -g ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
typeset -g ZSH_AUTOSUGGEST_HISTORY_IGNORE=$HISTORY_IGNORE