# ===================== # Environment settings # ===================== # Do Not Track for CLI tools export DO_NOT_TRACK=1 # Preferred editor export EDITOR='nvim' # ===================== # Prompt and UI # ===================== # Starship prompt (modern, fast, customizable) eval "$(starship init zsh)" # ===================== # fzf integration # ===================== # fzf key bindings and completion if [ -f /usr/share/fzf/key-bindings.zsh ]; then source /usr/share/fzf/key-bindings.zsh fi if [ -f /usr/share/fzf/completion.zsh ]; then source /usr/share/fzf/completion.zsh fi # ===================== # Aliases # ===================== # Modern replacements for coreutils alias cat="bat" alias ls="exa --icons" alias ll="exa -l --icons" alias la="exa -la --icons" # Developer tools alias lg="lazygit" # ===================== # Zsh history settings # ===================== HISTFILE=~/.zsh_history HISTSIZE=10000 SAVEHIST=10000 setopt append_history setopt inc_append_history setopt share_history setopt hist_ignore_dups setopt hist_reduce_blanks # ===================== # Zsh plugin integrations # ===================== # Autosuggestions if [ -f /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh fi # Syntax highlighting if [ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh fi # Additional completions fpath+=/usr/share/zsh/site-functions autoload -Uz compinit && compinit # ===================== # Command-not-found handler (Arch/pkgfile) # ===================== if [ -f /usr/share/doc/pkgfile/command-not-found.zsh ]; then source /usr/share/doc/pkgfile/command-not-found.zsh fi # ===================== # End of .zshrc # =====================