From: Simon Ruderich Date: Thu, 24 Oct 2013 08:46:13 +0000 (+0200) Subject: zsh/rc: Add zshrc_fortune_arguments configuration variable. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=fdbda4373a045a26e7025d90a2ae1a9fab4d12dd;p=config%2Fdotfiles.git zsh/rc: Add zshrc_fortune_arguments configuration variable. --- diff --git a/zsh/rc b/zsh/rc index 7f05bbf..91d1f5d 100644 --- 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 }