Ensure autosuggestions load, add navi widget
This commit is contained in:
parent
3834271bb5
commit
6f3d51878a
25
zshrc
25
zshrc
@ -14,24 +14,39 @@ USE_POWERLINE="true"
|
|||||||
if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
|
if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
|
||||||
source /usr/share/zsh/manjaro-zsh-config
|
source /usr/share/zsh/manjaro-zsh-config
|
||||||
fi
|
fi
|
||||||
# Use manjaro zsh prompt
|
|
||||||
if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
|
|
||||||
source /usr/share/zsh/manjaro-zsh-prompt
|
|
||||||
fi
|
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
# Use a prompt, depending on what is available:
|
||||||
|
# 1. starship
|
||||||
|
# 2. p10k
|
||||||
|
# 3. manjaro
|
||||||
if [[ -n "$(command -v starship)" ]]; then
|
if [[ -n "$(command -v starship)" ]]; then
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
else
|
else
|
||||||
if [[ -s ~/.p10k.zsh ]]; then
|
if [[ -s ~/.p10k.zsh ]]; then
|
||||||
source ~/.p10k.zsh
|
source ~/.p10k.zsh
|
||||||
|
else
|
||||||
|
# Use manjaro zsh prompt
|
||||||
|
if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
|
||||||
|
source /usr/share/zsh/manjaro-zsh-prompt
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Autosuggestions
|
||||||
|
if [[ -s /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
|
||||||
|
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Intelligent and fast autojump
|
||||||
if [[ -n "$(command -v zoxide)" ]]; then
|
if [[ -n "$(command -v zoxide)" ]]; then
|
||||||
eval "$(zoxide init zsh)"
|
eval "$(zoxide init zsh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Cheat my way through the CLI
|
||||||
|
if [[ -n "$(command -v navi)" ]]; then
|
||||||
|
eval "$(navi widget zsh)"
|
||||||
|
fi
|
||||||
|
|
||||||
# Custom aliases
|
# Custom aliases
|
||||||
if [[ -s ~/.aliases ]]; then
|
if [[ -s ~/.aliases ]]; then
|
||||||
source ~/.aliases
|
source ~/.aliases
|
||||||
|
Loading…
x
Reference in New Issue
Block a user