Advertisement
rnga

.zshrc

May 1st, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. # ~/.zshrc
  2.  
  3. #--------------------------------------------------
  4. # History Settings
  5. #--------------------------------------------------
  6. HISTSIZE=10000
  7. SAVEHIST=20000
  8. HISTFILE=~/.zsh_history
  9. setopt APPEND_HISTORY
  10. setopt HIST_IGNORE_ALL_DUPS
  11. setopt HIST_REDUCE_BLANKS
  12.  
  13. #--------------------------------------------------
  14. # Prompt with Git Branch
  15. #--------------------------------------------------
  16. parse_git_branch() {
  17. git rev-parse --abbrev-ref HEAD 2>/dev/null
  18. }
  19.  
  20. autoload -Uz colors && colors
  21.  
  22. export PS1="[%{%F{214}%}%1~%{%f%}]$ "
  23.  
  24. #--------------------------------------------------
  25. # Environment Variables
  26. #--------------------------------------------------
  27. export EDITOR='nvim'
  28. export VISUAL='nvim'
  29. export PATH="$HOME/.config/scripts:$HOME/.local/bin:/opt/piavpn/bin:$PATH"
  30.  
  31. #--------------------------------------------------
  32. # Completion System
  33. #--------------------------------------------------
  34. autoload -Uz compinit
  35. compinit
  36.  
  37.  
  38. #--------------------------------------------------
  39. # Plugins
  40. #--------------------------------------------------
  41. source ~/.config/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
  42.  
  43. source ~/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  44.  
  45.  
  46. #--------------------------------------------------
  47. # Optional Tools
  48. #--------------------------------------------------
  49. #[[ -f ~/.fzf.zsh ]] && source ~/.fzf.zsh
  50. #[[ -f /usr/share/autojump/autojump.zsh ]] && source /usr/share/autojump/autojump.zsh
  51.  
  52. #--------------------------------------------------
  53. # Source External Files
  54. #--------------------------------------------------
  55. [[ -f ~/.zsh_aliases ]] && source ~/.zsh_aliases
  56. [[ -f ~/.zsh_exports ]] && source ~/.zsh_exports
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement