summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/.zshrc17
1 files changed, 3 insertions, 14 deletions
diff --git a/etc/.zshrc b/etc/.zshrc
index b01102d..9be4ea1 100644
--- a/etc/.zshrc
+++ b/etc/.zshrc
@@ -173,13 +173,6 @@ function xhashd {
}
}
-# Note: local assignments (typeset foo=bar) are lost. export foo=bar works.
-function xsource {
- if [[ -r ${1} ]] {
- source ${1}
- }
-}
-
function Status Start Stop Restart Reload {
typeset script sudo
if ((EUID)) {
@@ -484,19 +477,16 @@ if ((SHOW_INFO)) {
# }}}
# {{{ Includes
-# no xsource here - typeset may be used
if [[ -e ${ZDIR}/../provided/includes ]] {
source ${ZDIR}/../provided/includes
}
-# local configuration, not in git
-xsource ${ZDIR}/local
+if [[ -e ${ZDIR}/local ]] {
+ source ${ZDIR}/local
+}
[[ -n ${commands[envstore]} ]] && eval $(envstore eval)
-# local configuration, in git
-xsource ${ZDIR}/hosts/${HOST}
-
# }}}
# {{{ Completion
@@ -548,7 +538,6 @@ compdef _functions reload
unalias 'linux:'
unfunction zrc_info
-unfunction xsource
unset system distro
unset -m 'mime_*'