2
0
mirror of https://github.com/webgefrickel/dotfiles synced 2024-11-17 09:25:52 +00:00
steffen-dotfiles/zsh/zshrc

40 lines
1.2 KiB
Bash
Raw Normal View History

### Added by Zinit's installer
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"
command git clone https://github.com/zdharma/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
### End of Zinit's installer chunk
# exports, functions and aliases
2021-05-18 12:25:41 +00:00
source ~/dotfiles/zsh/exports
source ~/dotfiles/zsh/aliases
source ~/dotfiles/zsh/functions
2021-05-13 16:25:21 +00:00
# plugins
zinit wait lucid for \
light-mode benvan/sandboxd \
light-mode zsh-users/zsh-autosuggestions \
light-mode zsh-users/zsh-completions \
light-mode zdharma/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"
2021-05-13 16:25:21 +00:00
# history
setopt SHARE_HISTORY
unsetopt HIST_BEEP
# easy vim/terminal switch
zle -N fancy-ctrl-z
bindkey '^Z' fancy-ctrl-z
# other tools init, pyenv + rbenv are sandboxd
2016-12-25 17:38:08 +00:00
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
eval "$(starship init zsh)"
eval "$(jump shell)"