# Consider moving these to a script in .rc.d if they don't need to be before the other scripts in there. # Source all scripts in ~/.rc.d for f in ~/.rc.d/*.sh; do source "$f" done # Activate ZSH autocompletion. autoload -Uz compinit compinit # Load ZSH Functions fpath=( ~/.zsh_functions "${fpath[@]}" ) # autoload -Uz clone # autoload -Uz compress # autoload -Uz remind # autoload -Uz whatsapp-backup # autoload -Uz zh # Configure ZSH History setopt HIST_IGNORE_SPACE setopt HIST_IGNORE_DUPS setopt INC_APPEND_HISTORY setopt histignorealldups sharehistory HISTSIZE=1000 SAVEHIST=10000 # TODO: Look for an equivalent for `shopt -s checkwinsize` # I don't even remember what it does, but I think it's bash specific. # zstyle ':completion:*' auto-description 'specify: %d' # zstyle ':completion:*' completer _expand _complete _correct _approximate # zstyle ':completion:*' format 'Completing %d' # zstyle ':completion:*' group-name '' # zstyle ':completion:*' menu select=2 # eval "$(dircolors -b)" # zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} # zstyle ':completion:*' list-colors '' # zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s # zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*' # zstyle ':completion:*' menu select=long # zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s # zstyle ':completion:*' use-compctl false # zstyle ':completion:*' verbose true # zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' # zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'