-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
executable file
·65 lines (53 loc) · 2.1 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
# ENV Variables/PATHs
export ZSH="${HOME}/.oh-my-zsh"
export GOPATH="${HOME}/go"
export GOROOT=/usr/lib/go
export GOPATH=$HOME/projects/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
export PATH=$PATH:$HOME/projects/go/bin
export EDITOR=lvim
export KUBE_EDITOR=lvim
export AWS_CLI_AUTO_PROMPT=on-partial
export PATH=/usr/local/bin/:$PATH:$HOME/bin
export PATH="${PATH}:${HOME}/.krew/bin"
export KUBECONFIG=~/.kube/config
export GITLAB_HOME=/srv/gitlab
export PATH=~/.npm-global/bin:$PATH
export PATH=~/.local/bin:$PATH
export DISABLE_AUTO_TITLE=true
export GPG_TTY=$(tty)
export PATH=$PATH:/opt/google-cloud-cli/bin/
# ZSH Setup
plugins=(z zsh-autosuggestions zsh-256color aws git docker kubectl terraform zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/local/bin/terraform terraform
autoload bashcompinit && bashcompinit
autoload -Uz compinit && compinit
export ZSH_THEME="agnoster"
export COLORTERM=truecolor
# This needs to be after the autoloads
kubectl completion zsh > ~/.kubectl-completion
source ~/.kubectl-completion
complete -C '/usr/local/bin/aws_completer' aws
# Env Variables
# Extra more custom ENV variables
[[ -f ~/.zsh/envs.zsh ]] && source ~/.zsh/envs.zsh
# Aliases and Functions
[[ -f ~/.zsh/aliases.zsh ]] && source ~/.zsh/aliases.zsh
[[ -f ~/.zsh/aliases-work.zsh ]] && source ~/.zsh/aliases-work.zsh
[[ -f ~/.zsh/functions.zsh ]] && source ~/.zsh/functions.zsh
# Setup Starship prompt
[[ -f ~/.zsh/starship.zsh ]] && source ~/.zsh/starship.zsh
eval "$(starship init zsh)"
# Setup Fuzzy Finder
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_CTRL_T_OPTS="--preview 'bat -n --color=always {}' --bind 'ctrl-/:change-preview-window(down|hidden|)'"
# Start Neofetch
macchina
# neofetch
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/home/prot0s/google-cloud-sdk/path.zsh.inc' ]; then . '/home/prot0s/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/home/prot0s/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/prot0s/google-cloud-sdk/completion.zsh.inc'; fi