diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-02 21:52:08 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-02 21:52:08 +0200 |
commit | 905ebcd04b274318d654d0c049bebc34a26e6032 (patch) | |
tree | 2e4573e524a3e00bfdaeb50dd5f966c3ebf67741 | |
parent | d6dca86a5f07492a750c377ae30cce210a545e20 (diff) |
Remove xsource as it's not really used
-rw-r--r-- | etc/.zshrc | 17 |
1 files changed, 3 insertions, 14 deletions
@@ -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_*' |