X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=869167906cdc85b64131a945a2ffe38a65eb55cd;hb=78ed4e167ea4bf3ba1b03cc64ea02e6d4184cf77;hp=4cd696785c37fc1f05edce10e59303bef7a61be2;hpb=f9ef70cac91d3a9991efe987fa551a22dfbba426;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index 4cd6967..8691679 100644 --- a/zsh/rc +++ b/zsh/rc @@ -50,10 +50,11 @@ zshrc_resolve_fg_to_resumed_job_name() { # MISCELLANEOUS SETTINGS -# Be paranoid, new files are readable/writable by me only, but not as root. -if [[ $UID -ne 0 ]]; then - umask 077 -fi +# Prevent warnings. +typeset -g TMOUT +# Load general shell setup commands. NOTE: Expand this when publishing the +# config. +source_config ~/.shell/rc # Disable beeps. setopt nobeep @@ -563,7 +564,7 @@ if [[ $TERM == screen* || $TERM == xterm* || $TERM == rxvt* ]]; then name=.zsh fi - # Prepend prefixes like in window_preexec(). + # Prepend prefixes like in zshrc_window_preexec(). if [[ $UID -eq 0 ]]; then name="!$name" fi @@ -846,9 +847,13 @@ fi # LOAD ADDITIONAL CONFIGURATION FILES -# Configuration option for rc.local to use GNU screen/tmux. By default GNU -# screen is used. Possible values: screen, tmux and empty (no value). +# Configuration options for rc.local. + +# 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 @@ -900,7 +905,7 @@ if [[ $TERM != dumb && $TERM != linux && -z $STY && -z $TMUX ]]; then fi fi -# Colorize stderr in red. Very useful when looking for errors. Thanks to +# Colorize stderr in bold red. Very useful when looking for errors. Thanks to # http://gentoo-wiki.com/wiki/Zsh for the basic script and Mikachu in #zsh on # Freenode (2010-03-07 04:03 CET) for some improvements (-r, printf). It's not # yet perfect and doesn't work with su and git for example, but it can handle @@ -929,7 +934,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 }