50 lines
1.2 KiB
Bash
50 lines
1.2 KiB
Bash
# -----------------------------
|
|
# PATH
|
|
# -----------------------------
|
|
export PATH="$PATH:$HOME/bin"
|
|
export KEYTIMEOUT=1
|
|
|
|
# -----------------------------
|
|
# Locales
|
|
# -----------------------------
|
|
export LANG=en_US.UTF-8
|
|
export LC_CTYPE=en_US.UTF-8
|
|
export LC_COLLATE=C
|
|
|
|
# -----------------------------
|
|
# Autocomplete
|
|
# -----------------------------
|
|
autoload -Uz compinit && compinit
|
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # Case insensitive
|
|
|
|
# -----------------------------
|
|
# Shell options
|
|
# -----------------------------
|
|
setopt autocd
|
|
setopt share_history
|
|
setopt interactivecomments
|
|
setopt PROMPT_SUBST # Enable dynamic prompt expansion
|
|
|
|
# -----------------------------
|
|
# Disable conflicting builtins
|
|
# -----------------------------
|
|
disable log
|
|
|
|
# -----------------------------
|
|
# History
|
|
# -----------------------------
|
|
HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
|
|
HISTSIZE=2000
|
|
SAVEHIST=1000
|
|
setopt HIST_IGNORE_ALL_DUPS
|
|
|
|
# -----------------------------
|
|
# Source modular components
|
|
# -----------------------------
|
|
CONFIG_DIR="$HOME/.config/zsh"
|
|
|
|
[ -f "$CONFIG_DIR/aliases" ] && source "$CONFIG_DIR/aliases"
|
|
[ -f "$CONFIG_DIR/prompt" ] && source "$CONFIG_DIR/prompt"
|
|
[ -f "$CONFIG_DIR/keybindings" ] && source "$CONFIG_DIR/keybindings"
|
|
|