aboutsummaryrefslogtreecommitdiff
path: root/templates/.zsh/completion.zsh
blob: 016c6554476d8db1b15f1d81398a0d5d62203560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# matches case insensitive for lowercase
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'

# pasting with tabs doesn't perform completion
zstyle ':completion:*' insert-tab pending

# gulp task completion
function gulpTasks() {
    compls=$(grep -Eho "gulp\.task[^,]*" [Gg]ulpfile.* 2>/dev/null | sed s/\"/\'/g | cut -d "'" -f 2 | sort)

    completions=(${=compls})
    compadd -- $completions
}

compdef gulpTasks gulp