From 0785eda2d3691b76477be5db6a497dce14df89a3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 13 Sep 2008 09:12:19 +0200 Subject: Added reload function from the grml zshrc --- etc/functions/reload | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 etc/functions/reload (limited to 'etc/functions/reload') 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 + } +} -- cgit v1.2.3