-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
54 lines (40 loc) · 1.33 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
# zmodload zsh/zprof
# Enable Powerlevel10k instant prompt
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
# Path to your oh-my-zsh installation
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
zstyle ':omz:update' mode disabled # disable automatic updates
plugins=(git asdf kubectl)
source $ZSH/oh-my-zsh.sh
# User configuration
export EDITOR='nano'
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
source ~/dotfiles/alii.sh
if [[ -f "$HOME/proprietary.sh" ]]; then
source ~/proprietary.sh
fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
case $OSTYPE in
"darwin"*)
eval "$(/usr/local/bin/brew shellenv)"
;;
"linux-gnu")
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
;;
*)
echo "Unknown OS ($OSTYPE), no OS-dependent setup will be done"
;;
esac
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
#[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
autoload -Uz compinit && compinit
which kubectl > /dev/null
if [[ $? -eq 0 ]]; then
source <(command kubectl completion zsh)
fi
# zprof
export PATH="/usr/local/opt/libpq/bin:$PATH"