23 lines
615 B
Bash
23 lines
615 B
Bash
#!/bin/zsh
|
|
# Set up zsh for interactive use (options, prompt, aliases, etc.)
|
|
|
|
# On MacOS, manipulate PATH and MANPATH here (see explanation in .zshenv).
|
|
[ "$(uname -s)" = "Darwin" ] && source "$XDG_CONFIG_HOME/shell/path.sh"
|
|
|
|
# Source additional configurations if available.
|
|
while read -r f; do [ -f "$f" ] && source "$f"; done <<EOL
|
|
$ZDOTDIR/aliases
|
|
$ZDOTDIR/completion
|
|
$ZDOTDIR/prompt
|
|
$ZDOTDIR/vi-mode
|
|
EOL
|
|
unset f
|
|
|
|
# Prevent ctrl-s from freezing the terminal.
|
|
stty stop undef
|
|
|
|
# Save a lot of history.
|
|
HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/history"
|
|
HISTSIZE=1000000
|
|
SAVEHIST=1000000
|
|
|