Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ~/.zshrc
- #--------------------------------------------------
- # History Settings
- #--------------------------------------------------
- HISTSIZE=10000
- SAVEHIST=20000
- HISTFILE=~/.zsh_history
- setopt APPEND_HISTORY
- setopt HIST_IGNORE_ALL_DUPS
- setopt HIST_REDUCE_BLANKS
- #--------------------------------------------------
- # Prompt with Git Branch
- #--------------------------------------------------
- parse_git_branch() {
- git rev-parse --abbrev-ref HEAD 2>/dev/null
- }
- autoload -Uz colors && colors
- export PS1="[%{%F{214}%}%1~%{%f%}]$ "
- #--------------------------------------------------
- # Environment Variables
- #--------------------------------------------------
- export EDITOR='nvim'
- export VISUAL='nvim'
- export PATH="$HOME/.config/scripts:$HOME/.local/bin:/opt/piavpn/bin:$PATH"
- #--------------------------------------------------
- # Completion System
- #--------------------------------------------------
- autoload -Uz compinit
- compinit
- #--------------------------------------------------
- # Plugins
- #--------------------------------------------------
- source ~/.config/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
- source ~/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
- #--------------------------------------------------
- # Optional Tools
- #--------------------------------------------------
- #[[ -f ~/.fzf.zsh ]] && source ~/.fzf.zsh
- #[[ -f /usr/share/autojump/autojump.zsh ]] && source /usr/share/autojump/autojump.zsh
- #--------------------------------------------------
- # Source External Files
- #--------------------------------------------------
- [[ -f ~/.zsh_aliases ]] && source ~/.zsh_aliases
- [[ -f ~/.zsh_exports ]] && source ~/.zsh_exports
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement