Refactor zsh_env startup so that it is possible to override PATH

variable once it has already been configured.
This commit is contained in:
2015-08-10 23:25:34 -07:00
parent f76b446ccf
commit b83433a807
4 changed files with 102 additions and 51 deletions

View File

@@ -1 +1,11 @@
source ~/.lib/shellenv.sh
function init_profile {
zmodload zsh/datetime
setopt promptsubst
PS4='+$EPOCHREALTIME %N:%i> '
# save file stderr to file descriptor 3 and redirect stderr (including trace
# output) to a file with the script's PID as an extension
exec 3>&2 2>/tmp/startlog.$$
# set options to turn on tracing and expansion of commands contained in the prompt
setopt xtrace prompt_subst
}
source ~/.lib/shellenv.sh