2021-12-14 18:07:59 +00:00
|
|
|
# zinit
|
2021-05-18 15:02:12 +00:00
|
|
|
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
|
2021-05-18 15:21:38 +00:00
|
|
|
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
|
2021-11-18 23:40:11 +00:00
|
|
|
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.zinit/bin" && \
|
2021-05-18 15:21:38 +00:00
|
|
|
print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \
|
|
|
|
print -P "%F{160}▓▒░ The clone has failed.%f%b"
|
2021-05-18 15:02:12 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
source "$HOME/.zinit/bin/zinit.zsh"
|
|
|
|
autoload -Uz _zinit
|
|
|
|
(( ${+_comps} )) && _comps[zinit]=_zinit
|
2012-09-09 09:42:27 +00:00
|
|
|
|
2021-05-13 16:25:21 +00:00
|
|
|
# plugins
|
2021-05-18 15:02:12 +00:00
|
|
|
zinit wait lucid for \
|
|
|
|
light-mode zsh-users/zsh-autosuggestions \
|
|
|
|
light-mode zsh-users/zsh-completions \
|
2021-11-18 23:40:11 +00:00
|
|
|
light-mode zdharma-continuum/fast-syntax-highlighting \
|
2021-05-18 15:02:12 +00:00
|
|
|
light-mode "https://github.com/belak/zsh-utils/blob/master/history/history.plugin.zsh" \
|
|
|
|
light-mode "https://github.com/belak/zsh-utils/blob/master/completion/completion.plugin.zsh"
|
2013-11-24 17:52:33 +00:00
|
|
|
|
2021-05-13 16:25:21 +00:00
|
|
|
# history
|
|
|
|
setopt SHARE_HISTORY
|
|
|
|
unsetopt HIST_BEEP
|
2013-11-24 17:52:33 +00:00
|
|
|
|
2021-05-13 15:45:54 +00:00
|
|
|
# easy vim/terminal switch
|
|
|
|
zle -N fancy-ctrl-z
|
|
|
|
bindkey '^Z' fancy-ctrl-z
|
|
|
|
|
2021-12-14 18:07:59 +00:00
|
|
|
# exports, functions and aliases
|
|
|
|
source ~/dotfiles/zsh/exports.zsh
|
|
|
|
source ~/dotfiles/zsh/aliases.zsh
|
|
|
|
source ~/dotfiles/zsh/functions.zsh
|
|
|
|
|
2021-05-18 15:02:12 +00:00
|
|
|
# other tools init, pyenv + rbenv are sandboxd
|
2016-12-25 17:38:08 +00:00
|
|
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
2021-05-18 15:02:12 +00:00
|
|
|
eval "$(starship init zsh)"
|
2021-01-27 19:44:04 +00:00
|
|
|
eval "$(jump shell)"
|
2021-05-18 19:05:41 +00:00
|
|
|
eval "$(rbenv init - --no-rehash)"
|
2021-05-27 11:45:28 +00:00
|
|
|
eval "$(pyenv init --path --no-rehash)"
|