-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zplugrc
151 lines (109 loc) · 5.44 KB
/
.zplugrc
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# vim: syntax=zsh:
#### ZPLUG ######
source ~/.zplug/init.zsh
# ENHANCD
zplug "b4b4r07/enhancd", use:init.sh
##### ZDHARMA
# history search multiword
zstyle :plugin:history-search-multi-word reset-prompt-protect 1
# Add from README
schedprompt() {
zle && zle reset-prompt
sched +1 schedprompt
}
zmodload -i zsh/sched
schedprompt
zstyle ":history-search-multi-word" page-size "8" # Number of entries to show (default is $LINES/3)
zstyle ":history-search-multi-word" highlight-color "fg=yellow,bold" # Color in which to highlight matched, searched text (default bg=17 on 256-color terminals)
zstyle ":plugin:history-search-multi-word" synhl "yes" # Whether to perform syntax highlighting (default true)
zstyle ":plugin:history-search-multi-word" active "underline" # Effect on active history entry. Try: standout, bold, bg=blue (default underline)
zstyle ":plugin:history-search-multi-word" check-paths "yes" # Whether to check paths for existence and mark with magenta (default true)
zstyle ":plugin:history-search-multi-word" clear-on-cancel "no" # Whether pressing Ctrl-C or ESC should clear entered query
zplug "zdharma-continuum/fast-syntax-highlighting"
zplug "zdharma-continuum/history-search-multi-word"
#zplug "zdharma/zsh-diff-so-fancy" #, as:command, use:bin/git-dsf
#zplug "zdharma/zui"
#zplug "zdharma/zbrowse"
##### END ZDHARMA
##### ZSH-USERS
zplug "zsh-users/zsh-autosuggestions", use:zsh-autosuggestions.zsh
#zplug "zsh-users/zsh-completions"
##### ZSH Abbreviations
zplug "momo-lab/zsh-abbrev-alias"
##### END ZSH Abbreviations
#### Install exa, use brew/deb
# zplug "ogham/exa", from:gh-r, as:command, rename-to:exa, use:"*linux*"
# zplug "ogham/exa", from:gh-r, as:command, rename-to:exa, use:"*macos-x86_64*"
# #### Install greenclip
# Not for Mac
# zplug "erebe/greenclip", from:gh-r, as:command, use:"*greenclip*"
#### Install td for todos, need to add manually for linux
# zplug "Swatto/td", from:gh-r, as:command, use:"*linux_amd64_td*", rename-to:td
# zplug "Swatto/td", from:gh-r, as:command, use:"*Darwin_ARM64*", rename-to:td
#### Install direnv
# zplug "direnv/direnv", from:gh-r, as:command, rename-to:"direnv", use:"*linux-amd64*"
# Cannot use below, see https://github.com/zplug/zplug/issues/418
# zplug "direnv/direnv", from:gh-r, as:command, rename-to:"direnv", use:"*darwin-arm64"
zplug "ptavares/zsh-direnv"
#### Install envsubst
#zplug "a8m/envsubst", from:gh-r, as:command, rename-to:"envsubst", use:"*Linux-x86_64*"
# #### Install b3 strace parser
# zplug "dannykopping/b3", from:gh-r, as:command, use:"*b3*"
#### OMZ
zplug "plugins/colored-man-pages", from:oh-my-zsh
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/extract", from:oh-my-zsh
zplug "plugins/battery", from:oh-my-zsh
#specific omz libraries
#zplug "robbyrussell/oh-my-zsh", use:"lib/{clipboard,history,key-bindings,misc,grep,termsupport}.zsh"
zplug "robbyrussell/oh-my-zsh", use:"lib/{functions,clipboard,history,termsupport}.zsh"
##### THEME - powerlevel9k
DEFAULT_USER='assaxor'
#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( context dir_writable virtualenv dir rbenv vcs)
#POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs command_execution_time ram vi_mode time ssh)
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( vi_mode dir_writable virtualenv dir rbenv vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs command_execution_time ram ssh kubecontext)
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
POWERLEVEL9K_USER_ICON="\uf155" # "\ue7a2" #"§" #"Ξ" #"\uF415"
POWERLEVEL9K_ALWAYS_SHOW_USER=true
#POWERLEVEL9K_HOME_FOLDER_ABBREVIATION="%F{red} $(print_icon 'HOME_ICON') %F{black}"
POWERLEVEL9K_MODE='nerdfont-complete'
POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR=$'\ue0c6' #'\uE0C0 ' #'\uE0C0'
POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR=$'\uE0BA'
POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR=$' \uE0BB0'
POWERLEVEL9K_DIR_HOME_FOREGROUND='016'
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND='016'
#POWERLEVEL9K_DIR_DEFAULT_FOREGROUND='234'
POWERLEVEL9K_CONTEXT_DEFAULT_BACKGROUND='016'
POWERLEVEL9K_TIME_FOREGROUND='016'
POWERLEVEL9K_STATUS_OK_BACKGROUND='016'
POWERLEVEL9K_VI_INSERT_MODE_STRING=""
POWERLEVEL9K_VI_COMMAND_MODE_STRING=""
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%F{green} \uf155 ❯%f "
#zplug "bhilburn/powerlevel9k", as:theme
zplug "romkatv/powerlevel10k", as:theme
#zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
#zplug "themes/theunraveler", from:oh-my-zsh, as:theme
###### END THEME
###### Custom Plugins
# ZSH Bell
# zplug "jpouellet/5278239", from:gist, use:zbell.sh
# Shifted to:
zplug "kevinywlui/zlong_alert.zsh"
# # oh my tmux
# zplug "gpakosz/.tmux", from:github, \
# hook-build:"ln -s -f $ZPLUG_REPOS/gpakosz/.tmux/.tmux.conf $HOME/ && touch $HOME/.tmux.conf.local"
# ###### END Custom Plugins
### Reminds aliases
zplug "MichaelAquilina/zsh-you-should-use"
### Install `dragon` for linux, make sure to install `libgtk-3-dev`
isLinux && zplug "mwh/dragon", hook-build:"make install"
ZPLUG_LOG_LOAD_FAILURE=true
#zplug "jhawthorn/fzy", from:local, hook-build:"brew install fzy"
isLinux && zplug "telepresenceio/telepresence", from:gh-r, as:command, rename-to:telepresence, use:"*-linux-amd64"
# Add linguist as docker image
#`zplug "github/linguist", from:github, hook-build: "echo hello" #"docker buildx build -t github-linguist ."
zplug load