Advertisement
JW0914

SE zshrc

Jul 16th, 2021 (edited)
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.97 KB | None | 0 0
  1. export PATH=$HOME/bin:/usr/local/bin:$PATH
  2. export ZSH="/Users/sohaibA/.oh-my-zsh"
  3.  
  4. ZSH_THEME="powerlevel10k/powerlevel10k"
  5.  
  6. plugins=(
  7.   brew
  8.   cp
  9.   git git-flow-completion
  10.   history-substring-search
  11.   osx
  12.   poetry
  13.   zsh-autosuggestions zsh-completions zsh-syntax-highlighting
  14. )
  15.  
  16. autoload -U compinit && compinit
  17. complete -F __start_kubectl k
  18.  
  19. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
  20.  
  21. export PATH="/usr/local/opt/icu4c/bin:$PATH"
  22. export PATH="/usr/local/opt/icu4c/sbin:$PATH"
  23. export GOPATH=$HOME/go
  24. export GOROOT="$(brew --prefix golang)/libexec"
  25. export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
  26.  
  27. pasteinit() {
  28.   OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]}
  29.   zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`?
  30. }
  31.  
  32. pastefinish() {
  33.   zle -N self-insert $OLD_SELF_INSERT
  34. }
  35. zstyle :bracketed-paste-magic paste-init pasteinit
  36. zstyle :bracketed-paste-magic paste-finish pastefinish
  37.  
  38. export PATH="$HOME/.poetry/bin:$PATH"
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement