Skip to content

Commit

Permalink
update .zshrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazim Malik committed May 30, 2022
1 parent a51dda3 commit 34d1e09
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_TMUX_AUTOSTART='true'
export PATH="/usr/local/opt/m4/bin:$PATH"

export POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|kctx|kns|k|kubecolor'
export POWERLEVEL9K_GCLOUD_SHOW_ON_COMMAND='gcloud|gcs|gsutil'

# terminal left right
bindkey "\e\e[D" backward-word
bindkey "\e\e[C" forward-word
Expand Down Expand Up @@ -36,14 +39,41 @@ compdef kubecolor=kubectl
alias k=kubectl
complete -F __start_kubectl k

alias kctx=kubectx
alias kns=kubens

# Helm
source <(helm completion zsh)

# Flux
command -v flux >/dev/null && . <(flux completion zsh)
##########################################################################

# Nvm
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
# Docker / lima
alias d="lima nerdctl"

# Google cloud
source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"
export USE_GKE_GCLOUD_AUTH_PLUGIN=True

# Node
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

# Go
export GOBIN="$HOME/go/bin"
export PATH=$PATH:$GOBIN

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

autoload -U copy-earlier-word
zle -N copy-earlier-word
bindkey '\e\e.' copy-earlier-word

autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/local/bin/terraform terraform

### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT)
export PATH="/Users/ext.hazim.malik/.rd/bin:$PATH"
### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT)

0 comments on commit 34d1e09

Please sign in to comment.