mirror of
https://github.com/webgefrickel/dotfiles
synced 2024-11-15 12:12:58 +00:00
40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# zinit
|
|
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
|
|
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
|
|
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.zinit/bin" && \
|
|
print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \
|
|
print -P "%F{160}▓▒░ The clone has failed.%f%b"
|
|
fi
|
|
|
|
source "$HOME/.zinit/bin/zinit.zsh"
|
|
autoload -Uz _zinit
|
|
(( ${+_comps} )) && _comps[zinit]=_zinit
|
|
|
|
# plugins
|
|
zinit wait lucid for \
|
|
light-mode zsh-users/zsh-autosuggestions \
|
|
light-mode zsh-users/zsh-completions \
|
|
light-mode zdharma-continuum/fast-syntax-highlighting \
|
|
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"
|
|
|
|
# history
|
|
setopt SHARE_HISTORY
|
|
unsetopt HIST_BEEP
|
|
|
|
# easy vim/terminal switch
|
|
zle -N fancy-ctrl-z
|
|
bindkey '^Z' fancy-ctrl-z
|
|
|
|
# exports, functions and aliases
|
|
source ~/dotfiles/zsh/exports.zsh
|
|
source ~/dotfiles/zsh/aliases.zsh
|
|
source ~/dotfiles/zsh/functions.zsh
|
|
|
|
# other tools init, pyenv + rbenv are sandboxd
|
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
|
eval "$(starship init zsh)"
|
|
eval "$(jump shell)"
|
|
eval "$(rbenv init - --no-rehash)"
|
|
eval "$(pyenv init --path --no-rehash)"
|