prezto/runcoms/zshrc

36 lines
582 B
Bash
Raw Normal View History

#!/usr/bin/env zsh
2012-01-31 23:37:51 -05:00
#
# Executes commands at the start of an interactive session.
2012-01-31 23:37:51 -05:00
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "$DOTFILES/zprezto/init.zsh" ]]; then
source "$DOTFILES/zprezto/init.zsh"
2012-09-03 16:13:53 -04:00
fi
# Customize to your needs...
2016-11-23 12:09:33 -06:00
# load the default before the modules load
autoload -Uz compinit && compinit
source_if_present() {
if [ -f "$1" ]; then
. "$1"
fi
}
# Reload profile
alias reload!=". $HOME/.zshrc"
path=(
$HOME/bin
$DOTFILES/bin
/usr/local/opt/coreutils
$path
)
source_if_present "$DOTFILES/system/load.sh"