ambevar-dotfiles/.zshrc

33 lines
1.3 KiB
Bash
Raw Normal View History

################################################################################
## Shell Config -- Master File
## Date 2012-08-11
################################################################################
##==============================================================================
## Sourcing
##==============================================================================
SHELL_CURRENT="$(ps -o command="" $$)"
SHELL_DIR="$HOME/.shell.d"
## Need to be expanded for external scripts to fetch zsh hook file location.
HOOK_FILE="$HOME/.shell.d/hook"
2013-07-25 21:12:09 +02:00
## .profile is sourced automatically when X is started, but we need to source it
## manually to TTY.
[ -z "$DISPLAY" ] && [ -f "$HOME/.profile" ] && . "$HOME/.profile"
## Should be sourced first.
2013-06-04 08:51:17 +02:00
[ -f "${SHELL_DIR}/main_rc" ] && . "${SHELL_DIR}/main_rc"
[ -f "${SHELL_DIR}/options_zsh" ] && . "${SHELL_DIR}/options_zsh"
## Source order should not matter.
2013-06-04 08:51:17 +02:00
[ -f "${SHELL_DIR}/alias_rc" ] && . "${SHELL_DIR}/alias_rc"
[ -f "${SHELL_DIR}/colors_zsh" ] && . "${SHELL_DIR}/colors_zsh"
[ -f "${SHELL_DIR}/completion_rc" ] && . "${SHELL_DIR}/completion_rc"
[ -f "${SHELL_DIR}/funs_rc" ] && . "${SHELL_DIR}/funs_rc"
[ -f "${SHELL_DIR}/keys_zsh" ] && . "${SHELL_DIR}/keys_zsh"
2013-05-22 17:54:53 +02:00
## Should be sourced last
[ -f "$HOOK_FILE" ] && . "$HOOK_FILE"