config(zsh): optimize p10k
parent
c27e4af7de
commit
5c99eca1df
|
@ -1,6 +1,18 @@
|
||||||
# vim: set filetype=zsh:
|
# vim: set filetype=zsh:
|
||||||
# Put this on bottom of ~/.zshrc
|
# 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/
|
# https://www.topbug.net/blog/2016/09/27/make-gnu-less-more-powerful/
|
||||||
export LESS="-RF -i -K -s -x2 --wordwrap"
|
export LESS="-RF -i -K -s -x2 --wordwrap"
|
||||||
|
|
||||||
|
@ -55,11 +67,6 @@ if command -v fzf &>/dev/null; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Alias
|
|
||||||
alias g="git"
|
|
||||||
alias moe="make"
|
|
||||||
alias meo="make"
|
|
||||||
|
|
||||||
# https://github.com/BurntSushi/ripgrep
|
# https://github.com/BurntSushi/ripgrep
|
||||||
if command -v rg &>/dev/null; then
|
if command -v rg &>/dev/null; then
|
||||||
export RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/ripgreprc"
|
export RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/ripgreprc"
|
||||||
|
|
|
@ -39,12 +39,6 @@ DISABLE_LS_COLORS="true"
|
||||||
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#disable_untracked_files_dirty
|
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#disable_untracked_files_dirty
|
||||||
DISABLE_UNTRACKED_FILES_DIRTY="true"
|
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
|
# https://github.com/zsh-users/zsh-autosuggestions#suggestion-strategy
|
||||||
typeset -g ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
|
typeset -g ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
|
||||||
typeset -g ZSH_AUTOSUGGEST_HISTORY_IGNORE=$HISTORY_IGNORE
|
typeset -g ZSH_AUTOSUGGEST_HISTORY_IGNORE=$HISTORY_IGNORE
|
||||||
|
|
Loading…
Reference in New Issue