summaryrefslogtreecommitdiff
path: root/.zsh/plugins
blob: 88750f96f9441f07d1b9c0f5d2c8ce79d7f6e5fe (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#! /bin/zsh

# Load zgen
source "/home/urbain/.zgen/zgen.zsh"

# Load plugins
if ! zgen saved; then

    echo "Creating a zgen save"

    # Load oh-my-zsh framework
    zgen oh-my-zsh

    # Oh-my-zsh plugins
    zgen oh-my-zsh plugins/git
    zgen oh-my-zsh plugins/vi-mode
    zgen oh-my-zsh plugins/archlinux
    zgen oh-my-zsh plugins/tmux
    zgen oh-my-zsh plugins/themes

    # zsh-users plugins
    zgen load zsh-users/zsh-completions src
    zgen load zsh-users/zsh-syntax-highlighting

    # Appearance
    zgen oh-my-zsh themes/eastwood

    # My plugins
    zgen load uvaes/fzf-marks

    # Other plugins
    zgen load rupa/z
    zgen load djui/alias-tips
    zgen load tarruda/zsh-autosuggestions
    zgen load Tarrasch/zsh-autoenv
    zgen load joel-porquet/zsh-dircolors-solarized

    # Save all to init script
    zgen save
fi

# Plugins configuration

# Autosuggestion
{
    # Environment variables for plugin
    AUTOSUGGESTION_HIGHLIGHT_COLOR='fg=6'

    zle-line-init() {
        zle autosuggest-start
    }
    zle -N zle-line-init

    bindkey '^y' autosuggest-execute-suggestion
}