26 lines
716 B
Bash
26 lines
716 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"
|
|
|
|
# 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
|
|
|