Permalink
Browse files

Fix mail check conditionals

  • Loading branch information...
1 parent b0c3961 commit 2a529f534cb6fded533dae7b302f0ca630433937 @tpope committed Oct 5, 2012
Showing with 12 additions and 4 deletions.
  1. +2 −2 .login
  2. +2 −2 .zlogin
  3. +8 −0 bin/tpope-setup
View
4 .login
@@ -9,10 +9,10 @@ else if ( ! $?SHLVL && ( ! $?SSH_TTY || $?TERMCAP ) ) then
if ( -x /usr/games/fortune ) /usr/games/fortune
endif
-if ( $?MAIL && -f "$HOME/.hushlogin" && -f "$MAIL" ) then
+if ( -f "$HOME/.hushlogin" ) then
if ( -x /usr/bin/finger ) then
finger $USER | grep '^New mail' >&/dev/null && echo "You have new mail."
- else
+ else if ( $?MAIL && -f "$MAIL" ) then
find "$MAIL" -newerma "$MAIL" -exec echo 'You have new mail.' \;
endif
endif
View
@@ -9,10 +9,10 @@ elif [ -x /usr/games/fortune ] && [ "$SHLVL" -le 1 -a \( -z "$SSH_TTY" -o "$TERM
/usr/games/fortune
fi
-if [ -f "$HOME/.hushlogin" -a -f "$MAIL" ]; then
+if [ -f "$HOME/.hushlogin" ]; then
if [ -x /usr/bin/finger ]; then
finger $LOGNAME | grep '^New mail' >/dev/null 2>&1 && echo "You have new mail."
- else
+ elif [ -f "$MAIL" ]; then
find "$MAIL" -newerma "$MAIL" -exec echo 'You have new mail.' \;
fi
fi
View
@@ -37,6 +37,14 @@ set mail-subdirectory Mail
EOF
hidden=1
fi
+if inpath dcop && [ ! -f "$HOME/.kde/share/config/kdeglobals" ]; then
+ mkdir -p "$HOME/.kde/share/config"
+ cat > "$HOME/.kde/share/config/kdeglobals" <<EOF
+[General]
+TerminalApplication=\$HOME/bin/x-terminal-emulator
+EOF
+ hidden=1
+fi
[ -z "$hidden" ] || echo "Creating hidden files."
if inpath lynx && [ ! -f "$HOME/.lynx.cfg" ]; then

0 comments on commit 2a529f5

Please sign in to comment.