dotfiles/config/zsh/.zshrc

30 lines
979 B
Bash

# Make ctrl-q and ctrl-s available to terminal applications.
stty start undef stop undef
# Set up zsh for interactive use (options, prompt, aliases, etc.)
source "$ZDOTDIR/aliases.zsh"
source "$ZDOTDIR/completion.zsh"
source "$ZDOTDIR/history.zsh"
source "$ZDOTDIR/line-editor.zsh"
source "$ZDOTDIR/man-pages.zsh"
source "$ZDOTDIR/prompt.zsh"
# Additional setup for programs, if they are installed.
command -v broot >/dev/null 2>&1 && source "$ZDOTDIR/broot.zsh"
command -v eza >/dev/null 2>&1 && source "$ZDOTDIR/eza.zsh"
command -v fzf >/dev/null 2>&1 && source "$ZDOTDIR/fzf.zsh"
# Set up autoload for custom functions.
fpath=("$ZDOTDIR/functions" $fpath)
for filepath in $ZDOTDIR/functions/*; do
autoload "${filepath##*/}"
done
unset filepath
# Load additional local configuration if present.
local_config="$HOME/.local/etc/zsh/zshrc"
[ -r "$local_config" ] && source "$local_config"
unset local_config
# Allow comments in interactive use.
setopt INTERACTIVE_COMMENTS