summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.zsh/functions/cci9
1 files changed, 6 insertions, 3 deletions
diff --git a/.zsh/functions/cci b/.zsh/functions/cci
index b03666e..669f08f 100644
--- a/.zsh/functions/cci
+++ b/.zsh/functions/cci
@@ -18,6 +18,12 @@ log ()
echo ${fg_bold[white]}">> $1"${reset_color}
}
+TRAPEXIT ()
+{
+ # cleanup
+ unfunction ask log
+}
+
if [[ $# == 0 ]]; then
echo "No message given. Aborting."
return 1
@@ -90,7 +96,4 @@ log "Done"
popd -q
-# cleanup
-unfunction ask log
-
# vim: ft=zsh