diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-13 09:12:19 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-13 09:12:19 +0200 |
commit | 0785eda2d3691b76477be5db6a497dce14df89a3 (patch) | |
tree | 01b3339267a6cb0f7046bc1cfbe872af653738a6 /etc/functions | |
parent | bcf7a9a31d55d6cc34b8d16778b52105f9d9024c (diff) |
Added reload function from the grml zshrc
Diffstat (limited to 'etc/functions')
-rw-r--r-- | etc/functions/reload | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/functions/reload b/etc/functions/reload new file mode 100644 index 0000000..f4fc399 --- /dev/null +++ b/etc/functions/reload @@ -0,0 +1,11 @@ +## vim:ft=zsh +if [[ ${#*} == 0 ]] { + autoload xsource + xsource ~/.zshrc +} else { + local function + for function in $@; { + unfunction $function + autoload $function + } +} |