about summary refs log tree commit diff
path: root/zsh/.zsh.d/80_plugins.zsh
blob: dbabba3d829b28b819a4caa00c56d444d13333b4 (plain) (blame)
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
#!/usr/bin/env zsh

if [ "${TERM}" != "linux" ]
then
    ZGENOM_DIR="${HOME}/.zsh.d/zgenom"

    if [ ! -d "${ZGENOM_DIR}" ]
    then
        git clone "https://github.com/jandamm/zgenom.git" "${ZGENOM_DIR}"
    fi

    source "${ZGENOM_DIR}/zgenom.zsh"
    if ! zgen saved
    then
        zgenom load hlissner/zsh-autopair

        zgenom load zsh-users/zsh-autosuggestions

        zgenom load zsh-users/zsh-history-substring-search

        zgenom load zsh-users/zsh-syntax-highlighting

        zgenom load zsh-users/zsh-completions

        zgenom load jeffreytse/zsh-vi-mode

        zgenom save
    fi

    # zsh-users/zsh-autosuggestions
    bindkey '^ ' autosuggest-accept
fi

Consider giving Nix/NixOS a try! <3