From 06c5e2becdfd9293aa8d90d3e517ef1f03ac653c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 22 Nov 2009 12:52:49 +0100 Subject: make the zshrc work without packages/zsh/etc --- etc/functions/xsource | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 etc/functions/xsource (limited to 'etc/functions/xsource') diff --git a/etc/functions/xsource b/etc/functions/xsource deleted file mode 100644 index 50ad5be..0000000 --- a/etc/functions/xsource +++ /dev/null @@ -1,22 +0,0 @@ -## vim:ft=zsh -# Note: This function's behaviour differs hrom source. -# With source, parameters declared local are available to the sourcing script. -# With xsource, parameters declared local will NOT be available unless you use -# eval $(xsource -e file) -typeset -i eval=0 - -while [[ $1 == -* ]] { - case $1 in - -e) eval=1 ;; - esac - shift -} - - -if [[ -r $1 ]] { - if (( eval )) { - echo source $1 - } else { - source $1 - } -} -- cgit v1.2.3