summaryrefslogtreecommitdiffstats
path: root/.zsh/functions/precmd_maybe_festival
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-05-05 21:13:09 +0200
committerGravatar Tom Willemse2013-05-05 21:13:09 +0200
commiteaee297bd390385f1b17258c9d9d067f2ef0cebc (patch)
tree74ebbe47fd981171ecf8570475054a3aac596718 /.zsh/functions/precmd_maybe_festival
parent4a2315fb3ac7312f1aa84bcc8fd0c497a1744946 (diff)
downloaddotfiles-eaee297bd390385f1b17258c9d9d067f2ef0cebc.tar.gz
dotfiles-eaee297bd390385f1b17258c9d9d067f2ef0cebc.zip
Cleanup ZSH config
Diffstat (limited to '.zsh/functions/precmd_maybe_festival')
-rw-r--r--.zsh/functions/precmd_maybe_festival15
1 files changed, 0 insertions, 15 deletions
diff --git a/.zsh/functions/precmd_maybe_festival b/.zsh/functions/precmd_maybe_festival
deleted file mode 100644
index 3f8baa3..0000000
--- a/.zsh/functions/precmd_maybe_festival
+++ /dev/null
@@ -1,15 +0,0 @@
-cmdstatus=$?
-
-if [ -n "$__COMMAND_EXECUTING" -a $__COMMAND_EXECUTING -gt 0 \
- -a -n "$__COMMAND_EXEC_TIME" ]; then
- __COMMAND_EXECUTING=0
- duration=$(expr $(date +%s) - $__COMMAND_EXEC_TIME)
-
- if [ $duration -gt 30 ]; then
- if [ $cmdstatus -eq 0 ]; then
- echo "done" | festival --tts
- else
- echo "failed" | festival --tts
- fi
- fi
-fi