diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-11-22 12:52:49 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-11-22 12:52:49 +0100 |
commit | 06c5e2becdfd9293aa8d90d3e517ef1f03ac653c (patch) | |
tree | 48e649e75fca3b2666c8cb92650aa10a0b9b8cbb /etc/functions/xsource | |
parent | 9fc91f8ca80c4dd8b109350d01e4a26993dcb71e (diff) |
make the zshrc work without packages/zsh/etc
Diffstat (limited to 'etc/functions/xsource')
-rw-r--r-- | etc/functions/xsource | 22 |
1 files changed, 0 insertions, 22 deletions
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 - } -} |