ambevar-dotfiles/.zshrc

29 lines
836 B
Bash
Raw Normal View History

## Shell Config -- Master File
2014-01-04 17:56:06 +01:00
## Note that 'ps -o command= $$' gives the same result with parameters.
2014-01-11 21:56:38 +01:00
[ -z "$SHELL_CURRENT" ] && readonly SHELL_CURRENT="$(ps -o comm= $$)"
[ -z "$SHELL_DIR" ] && readonly SHELL_DIR="$HOME/.shell.d"
2013-12-22 12:44:53 +01:00
## .profile is sourced automatically by most login managers, but we need to
## source it manually if in TTY.
2013-07-25 21:12:09 +02:00
[ -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
2013-09-10 14:58:15 +02:00
## Shell hook: should be sourced last.
loadrc hook
## Browser autostart. See .scripts/browser-autostart
2013-08-05 00:56:23 +02:00
[ -n "$BROWSER_AUTOSTART" ] && unset BROWSER_AUTOSTART && browse