1
+ # Add deno completions to search path
2
+ if [[ " :$FPATH :" != * " :/mnt/c/Users/I034796/.zsh/completions:" * ]]; then export FPATH=" /mnt/c/Users/I034796/.zsh/completions:$FPATH " ; fi
1
3
# supercrabtree vim: set sw=2 ts=2 sts=2 et tw=80 foldlevel=0 foldmethod=marker spell:
2
4
# See ZSH startup files at http://zsh.sourceforge.net/Intro/intro_3.html
3
5
# zshrc is sourced in interactive shells
@@ -93,6 +95,8 @@ zsh_plugins() {
93
95
zgen oh-my-zsh plugins/vi-mode
94
96
zgen oh-my-zsh themes/arrow
95
97
zgen oh-my-zsh plugins/kubectl
98
+ zgen load jeffreytse/zsh-vi-mode
99
+ zgen load jonmosco/kube-ps1
96
100
ZSH_HIGHLIGHT_STYLES[comment]=' none' # https://github.com/zsh-users/zsh-syntax-highlighting/issues/510
97
101
fi
98
102
}
@@ -132,7 +136,7 @@ def_autoloads() {
132
136
133
137
# Autoloads
134
138
# See https://unix.stackexchange.com/questions/33255/how-to-define-and-load-your-own-shell-function-in-zsh
135
- autoload -Uz compinit && compinit # Used for compdef function.
139
+ autoload -Uz compinit && compinit -u # Used for compdef function.
136
140
autoload -U promptinit && promptinit
137
141
autoload -U colors && colors
138
142
# See http://www.refining-linux.org/archives/36/ZSH-Gem-1-Programmable-file-renaming/
@@ -262,12 +266,17 @@ cloud_sdk() {
262
266
if [[ -e " /opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc" ]]; then
263
267
source " /opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"
264
268
fi
269
+ if [[ -z " $TERMINAL " || -z " $GCTL_SESSION_ID " ]]; then
270
+ export GCTL_SESSION_ID=" my-dev"
271
+ fi
265
272
eval $( gardenctl kubectl-env zsh)
266
273
}
267
274
268
275
prompt_setup () {
276
+ if [[ -d " /opt/homebrew" ]]; then
269
277
kube_ps1_dir=$( /opt/homebrew/bin/brew --prefix kube-ps1) /share
270
278
[[ -d $kube_ps1_dir ]] && [[ -f $kube_ps1_dir /kube-ps1.sh ]] && source $kube_ps1_dir /kube-ps1.sh && PROMPT=' $(kube_ps1)' $PROMPT
279
+ fi
271
280
}
272
281
273
282
source_my_zshrc () {
@@ -294,3 +303,4 @@ misc_alias() {
294
303
main
295
304
296
305
[ -f ~ /.fzf.zsh ] && source ~ /.fzf.zsh
306
+ . " /mnt/c/Users/I034796/.deno/env"
0 commit comments