Skip to content

Commit fe857fc

Browse files
committed
Update
1 parent 63e91fa commit fe857fc

File tree

3 files changed

+37
-5
lines changed

3 files changed

+37
-5
lines changed

.tmux.conf

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ set -g window-status-current-format '#I:#(pwd="#{pane_current_path}"; echo ${pwd
1717
set -g base-index 1
1818

1919
set -g default-terminal "tmux-256color"
20+
set -ag terminal-overrides ",alacritty:RGB"
2021

2122
# set-window-option
2223
#setw -g mode-style fg="black",bg="white"

.zshenv

+3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ path=(
88
/usr/local/android/tools(N-/)
99
/usr/local/android/tools/bin(N-/)
1010
/usr/local/android/build-tools/33.0.2(N-/)
11+
/opt/homebrew/bin(N-/)
1112
"/Applications/Visual Studio Code.app/Contents/Resources/app/bin"(N-/)
1213
~/bin(N-/)
1314
~/go/bin(N-/)
1415
~/node_modules/.bin(N-/)
1516
~/.local/share/gem/ruby/3.0.0/bin(N-/)
17+
~/.pub-cache/bin(N-/)
1618
~/.deno/bin(N-/)
1719
~/.script(N-/)
20+
~/.tfenv/bin(N-/)
1821
~/ghq/github.com/flutter/flutter/bin(N-/)
1922
~/.tfenv/bin(N-/)
2023
$path

.zshrc

+33-5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ bindkey -e
44
autoload -Uz compinit
55
compinit
66

7+
### EDITOR
8+
command -v emacs > /dev/null 2>&1 && EDITOR="emacs -nw"
9+
10+
711
### zinit's installer
812
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
913
if [[ ! -f $ZINIT_HOME/zinit.zsh ]]; then
@@ -14,7 +18,6 @@ source "${ZINIT_HOME}/zinit.zsh"
1418
autoload -Uz _zinit
1519
(( ${+_comps} )) && _comps[zinit]=_zinit
1620

17-
command -v kubectl > /dev/null 2>&1 && source <(kubectl completion zsh)
1821

1922
### History
2023
export HISTFILE=${HOME}/.zsh_history
@@ -102,8 +105,9 @@ bindkey '^Xf' peco-directories
102105
zle -N peco-files
103106
bindkey '^X^f' peco-files
104107

105-
106108
### MicroK8s
109+
command -v kubectl > /dev/null 2>&1 && source <(kubectl completion zsh)
110+
107111
if which microk8s > /dev/null 2>&1; then
108112
alias mkubectl='microk8s kubectl'
109113
fi
@@ -117,16 +121,40 @@ export NVM_DIR="$HOME/.nvm"
117121
export DENO_INSTALL="/home/tetsu/.deno"
118122

119123
### Android
120-
ANDROID_HOME=/usr/local/android
124+
export ANDROID_HOME=/usr/local/android
121125

122-
# enable passphrase prompt for gpg
126+
### Enable passphrase prompt for gpg
123127
export GPG_TTY=$(tty)
124128

125129
### End of Zplugin installer's chunk
126130
zinit light zsh-users/zsh-syntax-highlighting
127131
zinit light zsh-users/zsh-completions
128-
zinit light sindresorhus/pure
129132
zstyle ":completion:*:commands" rehash 1
130133

131134
### JAVA
132135
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

Comments
 (0)