2020-01-19 01:36:21 +02:00
|
|
|
# install zinit if it's not already installed
|
|
|
|
if [ ! -f ~/.zinit/bin/zinit.zsh ]; then
|
|
|
|
mkdir ~/.zinit
|
|
|
|
git clone https://github.com/zdharma/zinit.git ~/.zinit/bin
|
2019-10-26 20:05:31 +03:00
|
|
|
fi
|
|
|
|
|
2020-01-19 01:36:21 +02:00
|
|
|
source ~/.zinit/bin/zinit.zsh
|
2019-10-26 20:05:31 +03:00
|
|
|
|
|
|
|
# pure prompt
|
2020-01-19 01:36:21 +02:00
|
|
|
zinit ice load multisrc'{async,pure}.zsh'
|
|
|
|
zinit light sindresorhus/pure
|
2019-10-26 20:05:31 +03:00
|
|
|
|
2020-01-04 11:34:51 +02:00
|
|
|
# fzf as tab completion
|
2020-01-19 01:36:21 +02:00
|
|
|
zinit ice lucid
|
|
|
|
zinit light Aloxaf/fzf-tab
|
2019-10-26 20:05:31 +03:00
|
|
|
|
2020-01-04 11:34:51 +02:00
|
|
|
# substring search
|
2020-01-19 01:36:21 +02:00
|
|
|
zinit ice lucid
|
|
|
|
zinit light zsh-users/zsh-history-substring-search
|
2019-10-26 20:05:31 +03:00
|
|
|
|
|
|
|
# fzf git awesomeness
|
2020-01-19 01:36:21 +02:00
|
|
|
zinit ice wait'1' lucid atload'source $HOME/.config/zsh/03-aliases.zsh'
|
|
|
|
zinit light wfxr/forgit
|
2019-10-26 20:05:31 +03:00
|
|
|
|
2019-11-06 11:20:20 +02:00
|
|
|
# lots of completions
|
2020-01-19 01:36:21 +02:00
|
|
|
zinit ice wait'1' lucid as'completion'
|
|
|
|
zinit light zsh-users/zsh-completions
|
2019-11-06 11:20:20 +02:00
|
|
|
|
2019-12-12 14:50:50 +02:00
|
|
|
# swaymsg completions
|
2020-01-19 01:36:21 +02:00
|
|
|
zinit ice wait'1' lucid as'completion'
|
|
|
|
zinit snippet https://gist.githubusercontent.com/RPigott/a3efdc08fa4d5fd7df38d091ab5e8532/raw/867ac1884d97d1bd1e5d4037d4eefdf4a004e72b/_swaymsg
|
2019-12-12 14:50:50 +02:00
|
|
|
|
2019-10-26 20:05:31 +03:00
|
|
|
# dotdrop completion
|
2020-01-19 01:36:21 +02:00
|
|
|
zinit ice wait'1' lucid as'completion'
|
|
|
|
zinit snippet '$DOTREPO/dotdrop/completion/_dotdrop-completion.zsh'
|
2019-10-26 20:05:31 +03:00
|
|
|
|
2019-10-28 09:31:31 +02:00
|
|
|
# docker-compose completion
|
2020-01-19 01:36:21 +02:00
|
|
|
zinit ice wait'1' lucid as'completion'
|
|
|
|
zinit snippet https://raw.githubusercontent.com/docker/compose/master/contrib/completion/zsh/_docker-compose
|
2019-10-28 09:31:31 +02:00
|
|
|
|
2019-10-26 20:05:31 +03:00
|
|
|
# syntax highlighting
|
2020-01-19 01:36:21 +02:00
|
|
|
zinit ice lucid atinit'zpcompinit'
|
|
|
|
zinit light zdharma/fast-syntax-highlighting
|
2019-10-26 20:05:31 +03:00
|
|
|
|
|
|
|
# use fzf with zsh
|
2020-11-16 11:50:40 +02:00
|
|
|
{%@@ if profile == "mko-laptop" @@%}
|
|
|
|
source ~/.fzf.zsh
|
|
|
|
{%@@ else @@%}
|
2019-10-26 20:05:31 +03:00
|
|
|
source /usr/share/fzf/key-bindings.zsh
|
|
|
|
source /usr/share/fzf/completion.zsh
|
2020-11-16 11:50:40 +02:00
|
|
|
{%@@ endif @@%}
|