truly the nix pad rabbit hole
This commit is contained in:
50
dot_zshrc
50
dot_zshrc
@@ -1,53 +1,3 @@
|
||||
# {{{ Reminders to install useful extensions
|
||||
#if [[ -e /usr/share/zsh/plugins/zsh-directory-history/zsh-directory-history.zsh ]]; then
|
||||
#. /usr/share/zsh/plugins/zsh-directory-history/zsh-directory-history.zsh
|
||||
#elif [[ -x "$(whence yay)" ]]; then
|
||||
#echo 'yay -S zsh-directory-history-git'
|
||||
#fi
|
||||
if [[ -e /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
|
||||
. /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
elif [[ -e /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
|
||||
. /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
elif [[ -x "$(whence yay)" ]]; then
|
||||
echo 'yay -S zsh-autosuggestions'
|
||||
elif [[ -x "$(whence zyp)" ]]; then
|
||||
echo 'zyp in zsh-autosuggestions'
|
||||
else
|
||||
echo "zsh-autosuggestions not found"
|
||||
fi
|
||||
if [[ -e /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then
|
||||
. /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
elif [[ -e /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then
|
||||
. /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
elif [[ -x "$(whence yay)" ]]; then
|
||||
echo 'yay -S zsh-syntax-highlighting'
|
||||
elif [[ -x "$(whence apt)" ]]; then
|
||||
echo 'sudo apt install zsh-syntax-highlighting'
|
||||
elif [[ -x "$(whence zyp)" ]]; then
|
||||
echo 'zyp in zsh-syntax-highlighting'
|
||||
else
|
||||
echo "zsh-syntax-highlighting not found"
|
||||
fi
|
||||
if [[ -e /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh ]]; then
|
||||
. /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||
elif [[ -e /usr/share/zsh-history-substring-search/zsh-history-substring-search.zsh ]]; then
|
||||
. /usr/share/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||
elif [[ -x "$(whence yay)" ]]; then
|
||||
echo 'yay -S zsh-history-substring-search'
|
||||
elif [[ -x "$(whence zyp)" ]]; then
|
||||
echo 'zyp in zsh-history-substring-search'
|
||||
else
|
||||
echo "zsh-history-substring-search not found"
|
||||
fi
|
||||
if [[ -x "$(whence direnv)" ]]; then
|
||||
eval "$(direnv hook zsh)"
|
||||
elif [[ -x "$(whence pacman)" ]]; then
|
||||
echo 'pacman -S direnv'
|
||||
else
|
||||
echo "direnv tool not found"
|
||||
fi
|
||||
# }}}
|
||||
|
||||
zmodload -i zsh/complist
|
||||
autoload -U compaudit compinit && compinit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user