-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc
128 lines (96 loc) · 4.63 KB
/
dot_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
125
126
127
128
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
#ZSH_THEME="gruvbox"
#SOLARIZED_THEME="dark"
zstyle ':omz:update' mode auto # update automatically without asking
# Uncomment the following line to change how often to auto-update (in days).
# zstyle ':omz:update' frequency 13
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
# COMPLETION_WAITING_DOTS="true"
plugins=(git zsh-autosuggestions z zsh-morpho)
zstyle ":morpho" screen-saver "term-saver.sh" # select screen saver "zmorpho"; available: zmorpho, zmandelbrot, zblank, pmorpho
# this can also be a command, e.g. "cmatrix"
#zstyle ":morpho" arguments "-s" # arguments given to screen saver program; -s - every key press ends
zstyle ":morpho" delay "290" # 5 minutes before screen saver starts
zstyle ":morpho" check-interval "60" # check every 1 minute if to run screen saver
# source homebrew completion
fpath+=/opt/homebrew/share/zsh/site-functions
# source oh-my-zsh
source $ZSH/oh-my-zsh.sh
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
bindkey "^[OF" forward-word #fn + right arrow
bindkey "^[OH" backward-word #fn + left arrow
# Get list of gnubin directories
export GNUBINS="$(find /opt/homebrew/opt -type d -follow -name gnubin -print | /opt/homebrew/opt/gnu-sed/bin/gsed -z 's/\n/:/g')"
export PATH=$GNUBINS:$PATH
export EDITOR=nvim
export VISUAL=nvim
export PAGER=bat
export RANGER_LOAD_DEFAULT_RC=FALSE
export PATH=$PATH:$HOME/.cargo/bin
export PATH=$PATH:/opt/homebrew/opt/libpq/bin
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
alias r=ranger
alias k=kubectl
export TF_PLUGIN_CACHE_DIR=$HOME/.terraform.d/plugin-cache
export LS_COLORS="di=32:ex=32:fi=37:pi=32:so=32:bd=32:cd=32:ln=32:or=32:mi=32"
export EXA_COLORS="ur=37:uw=37:ux=37:ue=37:gr=37:gw=37:gx=37:tr=37:tw=37:tx=37:su=37:sf=37:xa=37:sn=32:sb=32:df=32:ds=32:uu=32:un=32:gu=32:gn=32:lc=32:lm=32:ga=32:gm=32:gd=31:gv=32:gt=32:xx=37:da=37:in=32:bl=32:hd=37;04:lp=32:cc=32:"
alias l='eza -snew -a -l -h --icons --git'
alias vi=nvim
alias vim=nvim
alias cat=bat
alias kctx=kubectx
alias kns=kubens
alias tg=terragrunt
alias tf=terraform
export DIRENV_LOG_FORMAT=""
eval "$(direnv hook zsh)"
export STARSHIP_LOG=error
eval "$(starship init zsh)"
eval $(chezmoi completion zsh)
. /opt/homebrew/opt/asdf/libexec/asdf.sh
eval "$(atuin init zsh --disable-up-arrow)"
autoload -Uz compinit bashcompinit; compinit; bashcompinit
complete -C '/usr/local/bin/aws_completer' aws
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/tieum/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/tieum/Downloads/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/tieum/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/tieum/Downloads/google-cloud-sdk/completion.zsh.inc'; fi
export PATH="/opt/homebrew/opt/mysql-client/bin:$PATH"
export ASDF_GOLANG_MOD_VERSION_ENABLED=true
. ~/.asdf/plugins/golang/set-env.zsh
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"
#export PATH="/Library/Developer/CommandLineTools/usr/bin:$PATH"
cd $HOME
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
export PATH="/opt/homebrew/opt/kubeaudit/bin/:$PATH"
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /opt/homebrew/bin/mc mc