ambevar-dotfiles/.zshrc

33 lines
1008 B
Bash
Raw Normal View History

################################################################################
## Shell Config -- Master File
2013-07-31 08:35:25 +02:00
## Date 2013-07-29
################################################################################
##==============================================================================
## Sourcing
##==============================================================================
SHELL_CURRENT="$(ps -o command="" $$)"
SHELL_DIR="$HOME/.shell.d"
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"
loadrc()
{
for i; do
[ -f "${SHELL_DIR}/$i" ] && . "${SHELL_DIR}/$i"
done
}
## main and options should be sourced first.
loadrc main_rc options_zsh
## Source order should not matter.
loadrc keys_zsh
loadrc alias_rc colors_rc completion_rc funs_rc
2013-05-22 17:54:53 +02:00
## Browser autostart. See .scripts/browser-autostart
2013-08-05 00:56:23 +02:00
[ -n "$BROWSER_AUTOSTART" ] && unset BROWSER_AUTOSTART && browse