]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Add zshrc_fortune_arguments configuration variable.
authorSimon Ruderich <simon@ruderich.org>
Thu, 24 Oct 2013 08:46:13 +0000 (10:46 +0200)
committerSimon Ruderich <simon@ruderich.org>
Thu, 24 Oct 2013 08:46:13 +0000 (10:46 +0200)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 7f05bbf4b4a5eb4958f41f8b6457f6279f616423..91d1f5de8df17c7b700b20316bd83393801a0299 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -851,6 +851,8 @@ fi
 # Multiplexer to use. By default GNU screen is used. Possible values: screen,
 # tmux and empty (no multiplexer).
 zshrc_use_multiplexer=screen
+# Additional arguments for fortune.
+zshrc_fortune_arguments=()
 
 source_config ~/.zsh/rc.local
 
@@ -931,7 +933,7 @@ fi
 PERIOD=14400
 periodic() {
     # Display fortunes.
-    (( $+commands[fortune] )) && fortune -ac
+    (( $+commands[fortune] )) && fortune -ac "${zshrc_fortune_arguments[@]}"
     # Display reminders.
     (( $+commands[rem] )) && [[ -f ~/.reminders ]] && rem -h
 }