-
Notifications
You must be signed in to change notification settings - Fork 2
/
1-zgen.rc
70 lines (56 loc) · 1.81 KB
/
1-zgen.rc
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# shellcheck disable=SC2148 disable=SC1090 shell=bash
autoload -Uz compinit -C
compinit -C
autoload -U +X bashcompinit
bashcompinit
# load zgen
source "${HOME}/.zgen/zgen.zsh"
export ZGEN_RESET_ON_CHANGE="${HOME}/.zshrc"
export ZSH_DISABLE_AUTO_UPDATE=7 # Only check for oh-my-zsh updates every 7 days
# start compdef
# compinit -u
if ! zgen saved; then
# echo "Creating a zgen save"
## load omz plugins ##
# zgen oh-my-zsh
zgen oh-my-zsh plugins/gitfast
zgen oh-my-zsh plugins/command-not-found
zgen oh-my-zsh plugins/fzf # https://github.com/ohmyzsh/ohmyzsh/issues/12412
# zgen oh-my-zsh plugins/fnm
# zgen oh-my-zsh plugins/docker
zgen oh-my-zsh plugins/docker-compose
zgen oh-my-zsh plugins/aws
zgen oh-my-zsh plugins/colored-man-pages
# plugins/macos - throwing compdef errors
# zgen oh-my-zsh plugins/nmap
# zgen oh-my-zsh plugins/gh
## load normal plugins ##
zgen loadall <<EOPLUGINS
zsh-users/zsh-completions src
# zgen load zsh-users/zsh-completions
# zsh-users/zsh-syntax-highlighting
zsh-users/zsh-autosuggestions
zsh-users/zsh-history-substring-search
zdharma-continuum/fast-syntax-highlighting
# git related
peterhurford/git-it-on.zsh
# fzf wrappers
sunlei/zsh-ssh
bigH/git-fuzzy
EOPLUGINS
# olivierverdier/zsh-git-prompt # hasn't been updated in 9 years
# MichaelAquilina/zsh-you-should-us
# paulirish/git-open
# lukechilds/zsh-better-npm-completion
# 3v1n0/zsh-bash-completions-fallback
# mrkmg/borgbackup-zsh-completion
# torifat/npms
## zsh completion generator ##
# zgen load RobSis/zsh-completion-generator # Disabled for now as was the cause of 25% of my load time
## Not in use at present ##
# nnao45/zsh-kubectl-completion
# trejo08/kubecolor-zsh
# ascii-soup/zsh-url-highlighter
# save zgen cache
zgen save
fi