-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path1-zgen.rc
More file actions
54 lines (41 loc) · 1.21 KB
/
1-zgen.rc
File metadata and controls
54 lines (41 loc) · 1.21 KB
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
# 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
# Disable AWS prompt display (keep plugin functions)
export SHOW_AWS_PROMPT=false
# start compdef
# compinit -u
if ! zgen saved; then
# echo "Creating a zgen save"
## load omz plugins ##
zgen oh-my-zsh plugins/fzf # https://github.com/ohmyzsh/ohmyzsh/issues/12412
zgen oh-my-zsh plugins/command-not-found
if [ -z "$RUNNING_IN_VSCODE" ]; then
zgen oh-my-zsh plugins/docker-compose
zgen oh-my-zsh plugins/aws
zgen oh-my-zsh plugins/colored-man-pages
zgen oh-my-zsh plugins/gitfast
fi
## load normal plugins ##
zgen loadall <<EOPLUGINS
zsh-users/zsh-completions src
zsh-users/zsh-autosuggestions
zsh-users/zsh-history-substring-search
zdharma-continuum/fast-syntax-highlighting
EOPLUGINS
if [ -z "$RUNNING_IN_VSCODE" ]; then
zgen loadall <<EOPLUGINS
# git related
peterhurford/git-it-on.zsh
bigH/git-fuzzy
EOPLUGINS
fi
# save zgen cache
zgen save
fi