iax

.zshrc

iax
Nov 16th, 2021 (edited)
1,386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.64 KB | None | 0 0
  1. ## ---- Zap ----- https://www.zapzsh.com/ --> rm -rf "$ZAP_DIR"
  2. ZAP_INI="${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh"
  3. [[ ! -f $ZAP_INI ]] && zsh <(curl -s https://raw.githubusercontent.com/zap-zsh/zap/master/install.zsh) --keep --branch release-v1
  4. source $ZAP_INI
  5. ## End Zap
  6.  
  7. plug "zsh-users/zsh-autosuggestions"
  8. plug "hlissner/zsh-autopair"
  9. plug "zap-zsh/supercharge"
  10. plug "zap-zsh/zap-prompt"
  11. plug "zsh-users/zsh-syntax-highlighting"
  12. plug "zsh-users/zsh-history-substring-search"
  13. plug "trapd00r/LS_COLORS" && zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
  14. plug "$HOME/.bash_aliases"
  15. plug "wintermi/zsh-mise"
  16. plug "zap-zsh/completions"
  17.  
  18. # Load and initialise completion system
  19. autoload -Uz compinit
  20. compinit
  21.  
  22. # ================================= Config Programs ============================
  23. command -v zoxide >/dev/null && eval "$(zoxide init --cmd cd zsh)"
  24.  
  25. # --------------------------------- SETTINGS ----------------------------------
  26. export EDITOR=vim
  27. export LANG=en_US.UTF-8
  28. export PROMPT_EOL_MARK='⏎'
  29. HISTSIZE=10000               # Commands kept in memory
  30. SAVEHIST=10000               # Commands saved to history file
  31. HISTFILE=~/.zsh_history      # History file path
  32. setopt HIST_IGNORE_ALL_DUPS  # Ignore all duplicate commands, not just consecutive ones
  33. setopt HIST_IGNORE_SPACE     # Ignore commands that start with a space
  34.  
  35. autoload -Uz zmv # Enable zmv for renaming files
  36.  
  37. # Global Aliases
  38. alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
  39. alias -g G='| grep -i'
  40. alias -g H='| head'
  41. alias -g J='| jq'
  42. alias -g L='| less'
  43. alias -g T='| tail'
  44. alias -g V='--version'
  45. alias -g \?\?='--help'
  46.  
Advertisement
Add Comment
Please, Sign In to add comment