-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
99 lines (83 loc) · 1.94 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
# zmodload zsh/zprof
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
autoload -Uz compinit
if [[ -n ${ZDOTDIR}/.zcompdump(#qN.mh+24) ]]; then
compinit;
else
compinit -C;
fi;
DISABLE_AUTO_UPDATE="true" # disable ohmyzsh autoupdate
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
export PATH="/opt/homebrew/bin:$PATH"
export NVM_LAZY_LOAD=true
export NVM_COMPLETION=true
plugins=(
git
python
pip
zsh-autosuggestions
colorize
brew
tmux
macos
zsh-syntax-highlighting
vscode
virtualenvwrapper
docker
terraform
colored-man-pages
dotnet
zsh-tfenv
pyenv
poetry
rust
minikube
kubectl
helm
node
yarn
zsh-nvm
zsh-cargo-completion
golang
)
source $ZSH/oh-my-zsh.sh
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
fi
# User configuration
export PATH="$HOME/.poetry/bin:$PATH"
SECRETS_FILE="$HOME/.secrets.sh"
if [ -f $SECRETS_FILE ]; then
source $SECRETS_FILE
fi
alias nvim-lazy="NVIM_APPNAME=lazyvim nvim"
alias nvim-kickstart="NVIM_APPNAME=kickstartnvim nvim"
alias nvim-new="NVIM_APPNAME=nvim-new nvim"
function nvims() {
items=("default kickstartnvim lazyvim")
config=$(printf "%s\n" "${items[@]}" | fzf --prompt=" Neovim Config " --height=~50% --layout=reverse --border --exit-0)
if [[ -z $config ]]; then
echo "Nothing selected"
return 0
elif [[ $config == "default" ]]; then
config=""
fi
NVIM_APPNAME=$config nvim $@
}
bindkey -s ^a "nvims\n"
export GPG_TTY=$(tty)
gpgconf --launch gpg-agent
source $HOME/.zsh_aliases
timezsh() {
shell=${1-$SHELL}
for i in $(seq 1 10); do /usr/bin/time $shell -i -c exit; done
}
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
# zprof