-
Notifications
You must be signed in to change notification settings - Fork 0
/
zgen.zsh
35 lines (29 loc) · 1.12 KB
/
zgen.zsh
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
33
34
35
# If you want to use these zgen modules (and the aktau zsh theme), put the
# following in your .zshrc:
#
# source "${HOME}/dotfiles/zgen.zsh"
if [[ ! -e "${HOME}/.zgen/zgen.zsh" ]] ; then
git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen"
fi
source "${HOME}/.zgen/zgen.zsh"
if ! zgen saved ; then
zgen load zsh-users/zsh-syntax-highlighting # Syntax highlight while you type.
zgen load zsh-users/zsh-history-substring-search # Too useful to miss.
# Need the oh-my-zsh git library for fetching information out of the prompt.
zgen oh-my-zsh lib/git.zsh
zgen load "${HOME}/dotfiles/zsh/themes/aktau.zsh-theme"
# If I ever decide against this, I should still consider using
#
# bindkey '^R' history-incremental-pattern-search-backward
#
# Instead of the default, which is
#
# bindkey '^R' history-incremental-search-backward
#
# See https://unix.stackexchange.com/questions/44115/how-do-i-perform-a-reverse-history-search-in-zshs-vi-mode
if hash fzf &>/dev/null ; then
zgen load junegunn/fzf shell/key-bindings.zsh
fi
# Generate the init script from plugins above.
zgen save
fi