-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
124 lines (90 loc) · 2.97 KB
/
.zshrc
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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Go path
export GOPATH="~/workspace/go"
# vscode path
export VSCODEPATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
# path
export PATH="$GOPATH:$PATH:$VSCODEPATH"
# Path to your oh-my-zsh installation.
export ZSH="{YOUR_USER_NAME}/.oh-my-zsh"
# Terraform path
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
# jenv
export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"
# nvm
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
# Lima docker host
# export DOCKER_HOST=$(limactl list docker --format 'unix://{{.Dir}}/sock/docker.sock')
# docker host
# eval $(docker-machine env default)
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(
git
fzf
fasd
asdf
tmux
bundler
dotenv
zsh-syntax-highlighting
zsh-autosuggestions
)
# direnv
eval "$(direnv hook zsh)"
autoload -U promptinit; promptinit
# oh-my-zsh
ZSH_DISABLE_COMPFIX="true"
source $ZSH/oh-my-zsh.sh
# terraform alias
alias tf=terraform
# python alias
alias python="python3"
alias pip="python3 -m pip"
# kubectl alias
alias k="kubectl"
# minikube alias
alias mini="minikube"
# goland alias
alias goland='/usr/local/bin/goland'
# IntelliJ alias
alias idea='/usr/local/bin/idea'
# sublime alias
alias subl="/usr/local/bin/subl"
# bat alias
alias cat="bat"
# neovim alias
alias vim="nvim"
alias vi="nvim"
alias vimdiff="nvim -d"
export EDITOR=/usr/local/bin/nvim
# execute get_ready_to_work & get_off_work alias
alias gotowork="sh ~/covert/chloe-conf/mac/get_ready_to_work.sh"
alias getoffwork="sh ~/covert/chloe-conf/mac/get_off_work.sh"
# git alias
alias git-switch-pull-master="git switch master && git pull origin master"
alias git-switch-pull-main="git switch main && git pull origin main"
# run mongo db docker container
alias refresh-mongo="docker exec -it mongo-mongos1 bash refresh.sh"
# open mongodb compass
alias compass="docker ps | grep reusable_mongo | sed -E 's/.*0.0.0.0:([0-9]+).*/mongodb:\/\/localhost:\1/' | xargs open -a 'MongoDB Compass'"
source $ZSH/oh-my-zsh.sh
source $ZSH/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
source $ZSH/custom/themes/powerlevel10k/powerlevel10k.zsh-theme
autoload -U promptinit; promptinit
prompt pure
# Java home
export JAVA_HOME=`/usr/libexec/java_home -v 21`
# testcontainers
export DOCKER_HOST="unix://${HOME}/.colima/default/docker.sock"
export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock