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
|
2021-11-02 10:20:08 +02:00
|
|
|
git clone https://github.com/zdharma-continuum/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
|
|
|
|
2021-08-17 20:32:46 +03:00
|
|
|
# skim 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
|
|
|
|
2021-08-17 20:32:46 +03:00
|
|
|
# skim 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
|
|
|
|
|
|
|
# syntax highlighting
|
2020-01-19 01:36:21 +02:00
|
|
|
zinit ice lucid atinit'zpcompinit'
|
2021-11-02 10:20:08 +02:00
|
|
|
zinit light zdharma-continuum/fast-syntax-highlighting
|
2019-10-26 20:05:31 +03:00
|
|
|
|
2021-08-17 20:32:46 +03:00
|
|
|
# use skim with zsh
|
2020-11-16 11:50:40 +02:00
|
|
|
{%@@ if profile == "mko-laptop" @@%}
|
2021-08-17 20:32:46 +03:00
|
|
|
# Source from home directory since mko-laptop is ubuntu and it doesn't
|
|
|
|
# have skim in it's repositories
|
|
|
|
source ~/Software/skim/shell/key-bindings.zsh
|
|
|
|
source ~/Software/skim/shell/completion.zsh
|
2020-11-16 11:50:40 +02:00
|
|
|
{%@@ else @@%}
|
2021-08-17 19:17:38 +03:00
|
|
|
source /usr/share/skim/key-bindings.zsh
|
|
|
|
source /usr/share/skim/completion.zsh
|
2020-11-16 11:50:40 +02:00
|
|
|
{%@@ endif @@%}
|