31 lines
957 B
Bash
31 lines
957 B
Bash
# 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/config.zsh"
|
|
[ -r "$local_config" ] && source "$local_config"
|
|
unset local_config
|
|
|
|
# Prevent ctrl-s from freezing the terminal.
|
|
stty stop undef
|
|
|
|
# Allow comments in interactive use.
|
|
setopt INTERACTIVE_COMMENTS
|
|
|