forked from dozer47528/home-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
executable file
·64 lines (52 loc) · 1.79 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
if [ -f ~/.init_profile ]; then
. ~/.init_profile
fi
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
ZSH=$HOME/.oh-my-zsh
if [[ "$LIGHT" == "1" ]]; then
ZSH_THEME="example"
plugins=(extract z git git-extras kubectl minikube helm gitignore mvn bower gitfast github npm python pip docker bazel sdk)
else
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(extract z git git-extras kubectl minikube helm gitignore mvn bower gitfast github npm python pip docker bazel sdk zsh-autosuggestions zsh-syntax-highlighting)
fi
if [[ $('uname') == 'Linux' ]]; then
fi
if [[ $('uname') == 'Darwin' ]]; then
if [[ -f "$HOME/.iterm2_shell_integration.zsh" ]]; then
source $HOME/.iterm2_shell_integration.zsh
fi
plugins+=(brew)
export HOMEBREW_NO_AUTO_UPDATE=1
if [ -d '/Volumes/External/Applications/Visual Studio Code.app' ]; then
alias vs="open -a '/Volumes/External/Applications/Visual Studio Code.app'"
fi
if [ -d '/Applications/Visual Studio Code.app' ]; then
alias vs="open -a '/Applications/Visual Studio Code.app'"
fi
fi
export DISABLE_AUTO_UPDATE="true"
source $ZSH/oh-my-zsh.sh
if [[ "$LIGHT" != "1" ]]; then
source ~/.p10k.zsh
fi
# Create user level tmp
(! test -e /tmp/"$USER"_tmp_inited) && rm -rf ~/.tmp && mkdir -p ~/.tmp && chmod 700 ~/.tmp && touch /tmp/"$USER"_tmp_inited
# Sdkman
if [[ -d $HOME/.sdkman ]]; then
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
fi
# Completions
if type brew &>/dev/null; then
export FPATH=$(brew --prefix)/share/zsh-completions:$(brew --prefix)/share/zsh/site-functions:$FPATH
fi
export FPATH=$HOME/.bin:$FPATH
autoload -Uz compinit
compinit
if [ -f ~/.env_profile ]; then
. ~/.env_profile
fi
# Alias
. ~/.alias_profile