From 905ebcd04b274318d654d0c049bebc34a26e6032 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 2 May 2010 21:52:08 +0200 Subject: Remove xsource as it's not really used --- etc/.zshrc | 17 +++-------------- 1 file 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_*' -- cgit v1.2.3