-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zimrc
32 lines (27 loc) · 1.21 KB
/
.zimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# ------------------ modules to be initialized first ---------------------------
zmodule environment # sane zsh built-in environment options.
zmodule input # correct bind keys for input events.
zmodule utility # colors for ls, grep and less.
zmodule duration-info
zmodule git-info
# ------------------ completion -----------------------------------------------
# additional zsh completions.
zmodule zsh-users/zsh-completions --fpath src
# add additioncal completions from homebrew
if [ -x "$(command -v brew)" ]; then
zmodule $(brew --prefix)/share/zsh --fpath site-functions
fi
# add additioncal local completions
if [ -d "${HOME}/.local/share/zsh/completion" ]; then
zmodule ${HOME}/.local/share/zsh --fpath completion
fi
zmodule completion # enable completions
# ------------------ modules to be initialized last ---------------------------
zmodule zsh-users/zsh-syntax-highlighting # syntax highlighting.
zmodule zsh-users/zsh-history-substring-search
# handle fzf as a zim module
zmodule junegunn/fzf --on-pull "./install --no-bash --xdg --no-update-rc"
# https://github.com/aloxaf/fzf-tab
# use fzf for tab completion
zmodule Aloxaf/fzf-tab --source "fzf-tab.plugin.zsh"
zmodule zsh-users/zsh-autosuggestions # should be last