Last active
August 20, 2023 06:55
-
-
Save alichtman/fac23d3eb34dd38f9eae656c05d55916 to your computer and use it in GitHub Desktop.
zcomet vs. zinit configs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zcomet plugin config {{{ | |
source /opt/zcomet/zcomet.zsh | |
# oh-my-zsh plugins | |
zcomet load ohmyzsh lib git.zsh | |
zcomet snippet OMZ::plugins/git/git.plugin.zsh | |
zcomet snippet OMZ::plugins/fzf/fzf.plugin.zsh | |
zcomet snippet OMZ::plugins/ssh-agent/ssh-agent.plugin.zsh | |
zcomet snippet OMZ::plugins/colored-man-pages/colored-man-pages.plugin.zsh | |
zcomet load agkozak/zsh-z | |
zcomet load zdharma-continuum/fast-syntax-highlighting | |
zcomet load zsh-users/zsh-autosuggestions | |
zcomet load zsh-users/zsh-completions | |
zcomet load zsh-users/zsh-history-substring-search | |
zcomet load changyuheng/zsh-interactive-cd | |
zcomet load peterhurford/git-it-on.zsh | |
# zcomet load softmoth/zsh-vim-mode | |
CUSTOM_COMPLETIONS="$ZDOTDIR/completions" | |
[ -d "$CUSTOM_COMPLETIONS" ] || mkdir "$CUSTOM_COMPLETIONS" | |
rustup completions zsh cargo > "$CUSTOM_COMPLETIONS/_cargo" | |
zcomet fpath $CUSTOM_COMPLETIONS | |
zcomet compinint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source $ZINIT_HOME/zinit.zsh | |
autoload -Uz _zinit | |
(( ${+_comps} )) && _comps[zinit]=_zinit | |
# oh-my-zsh plugins | |
zinit ice wait'!' | |
zinit snippet OMZ::lib/git.zsh | |
zinit ice wait'!' | |
zinit snippet OMZP::git | |
zinit ice wait'!' | |
zinit snippet OMZP::fzf | |
zinit ice wait'!' | |
zinit snippet OMZP::ssh-agent | |
zinit ice wait'!' | |
zinit snippet OMZP::colored-man-pages | |
zinit load agkozak/zsh-z | |
# GitHub Plugins | |
# https://github.com/zdharma/zinit-configs/blob/a60ff64823778969ce2b66230fd8cfb1a957fe89/psprint/zshrc.zsh#L277 | |
zinit wait lucid for \ | |
silent atinit"ZINIT[COMPINIT_OPTS]=-C; zpcompinit; zpcdreplay" \ | |
zdharma-continuum/fast-syntax-highlighting \ | |
atload"!_zsh_autosuggest_start" \ | |
zsh-users/zsh-autosuggestions \ | |
as"completion" \ | |
zsh-users/zsh-completions \ | |
atload"!export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=yellow,fg=white,bold'" \ | |
zsh-users/zsh-history-substring-search \ | |
pick"zsh-interactive-cd.plugin.zsh" \ | |
changyuheng/zsh-interactive-cd \ | |
pick"git-it-on.plugin.zsh" \ | |
peterhurford/git-it-on.zsh #\ | |
# pick"zsh-vim-mode.plugin.zsh" \ | |
# softmoth/zsh-vim-mode | |
rustup completions zsh cargo > "$ZINIT[HOME_DIR]/completions/_cargo" | |
# Install my custom completions. | |
# TODO: Remove this silencing once https://github.com/zdharma-continuum/zinit/issues/518 is fixed | |
zinit creinstall -Q $ZINIT_HOME/completions 2>&1 > /dev/null | |
# END Plugins }}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment