@@ -4,6 +4,10 @@ bindkey -e
4
4
autoload -Uz compinit
5
5
compinit
6
6
7
+ # ## EDITOR
8
+ command -v emacs > /dev/null 2>&1 && EDITOR=" emacs -nw"
9
+
10
+
7
11
# ## zinit's installer
8
12
ZINIT_HOME=" ${XDG_DATA_HOME:- ${HOME} / .local/ share} /zinit/zinit.git"
9
13
if [[ ! -f $ZINIT_HOME /zinit.zsh ]]; then
@@ -14,7 +18,6 @@ source "${ZINIT_HOME}/zinit.zsh"
14
18
autoload -Uz _zinit
15
19
(( ${+_comps} )) && _comps[zinit]=_zinit
16
20
17
- command -v kubectl > /dev/null 2>&1 && source <( kubectl completion zsh)
18
21
19
22
# ## History
20
23
export HISTFILE=${HOME} /.zsh_history
@@ -102,8 +105,9 @@ bindkey '^Xf' peco-directories
102
105
zle -N peco-files
103
106
bindkey ' ^X^f' peco-files
104
107
105
-
106
108
# ## MicroK8s
109
+ command -v kubectl > /dev/null 2>&1 && source <( kubectl completion zsh)
110
+
107
111
if which microk8s > /dev/null 2>&1 ; then
108
112
alias mkubectl=' microk8s kubectl'
109
113
fi
@@ -117,16 +121,40 @@ export NVM_DIR="$HOME/.nvm"
117
121
export DENO_INSTALL=" /home/tetsu/.deno"
118
122
119
123
# ## Android
120
- ANDROID_HOME=/usr/local/android
124
+ export ANDROID_HOME=/usr/local/android
121
125
122
- # enable passphrase prompt for gpg
126
+ # ## Enable passphrase prompt for gpg
123
127
export GPG_TTY=$( tty)
124
128
125
129
# ## End of Zplugin installer's chunk
126
130
zinit light zsh-users/zsh-syntax-highlighting
127
131
zinit light zsh-users/zsh-completions
128
- zinit light sindresorhus/pure
129
132
zstyle " :completion:*:commands" rehash 1
130
133
131
134
# ## JAVA
132
135
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
136
+
137
+ # ## pnpm
138
+ export PNPM_HOME=" /home/tetsu/.local/share/pnpm"
139
+ case " :$PATH :" in
140
+ * " :$PNPM_HOME :" * ) ;;
141
+ * ) export PATH=" $PNPM_HOME :$PATH " ;;
142
+ esac
143
+
144
+ # ## Docker
145
+ command -v docker > /dev/null 2>&1 && source <( docker completion zsh)
146
+
147
+ # ## Kubernetes
148
+ command -v kubectl > /dev/null 2>&1 && source <( kubectl completion zsh)
149
+
150
+ # ## Micro k8s
151
+ if which microk8s > /dev/null 2>&1 ; then
152
+ alias mkubectl=' microk8s kubectl'
153
+ fi
154
+
155
+ # ## starship
156
+ if command -v starship > /dev/null 2>&1 ; then
157
+ eval " $( starship init zsh) "
158
+ else
159
+ zinit light sindresorhus/pure
160
+ fi
0 commit comments