2015-06-26 13:06:30 -06:00
|
|
|
# Sourced in login shells after .zshrc
|
|
|
|
# Commands that should be exectued only in login shells
|
|
|
|
# Do not set environment variables
|
|
|
|
# Do not define alias, functions, options, etc.
|
|
|
|
# Set terminal type
|
|
|
|
# Execute external commands (fortune, msgs, etc)
|
2012-05-22 12:49:45 -04:00
|
|
|
#
|
2015-06-26 13:06:30 -06:00
|
|
|
# $ZDOTDIR/.zshenv
|
|
|
|
# $ZDOTDIR/.zprofile
|
|
|
|
# $ZDOTDIR/.zshrc
|
|
|
|
# $ZDOTDIR/.zlogin
|
2012-05-22 12:49:45 -04:00
|
|
|
#
|
|
|
|
|
2012-05-27 20:08:40 -04:00
|
|
|
# Execute code that does not affect the current session in the background.
|
|
|
|
{
|
|
|
|
# Compile the completion dump to increase startup speed.
|
2012-09-03 16:13:53 -04:00
|
|
|
zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
|
2012-12-11 21:37:17 -08:00
|
|
|
if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
|
2012-09-01 17:53:06 -04:00
|
|
|
zcompile "$zcompdump"
|
2012-05-27 20:08:40 -04:00
|
|
|
fi
|
|
|
|
} &!
|
2012-05-27 17:04:01 -04:00
|
|
|
|
2012-05-22 12:49:45 -04:00
|
|
|
# Print a random, hopefully interesting, adage.
|
|
|
|
if (( $+commands[fortune] )); then
|
2014-05-07 09:57:21 -05:00
|
|
|
if [[ -t 0 || -t 1 ]]; then
|
2013-07-06 11:28:53 -05:00
|
|
|
fortune -s
|
2014-05-07 09:57:21 -05:00
|
|
|
print
|
|
|
|
fi
|
2012-05-22 12:49:45 -04:00
|
|
|
fi
|
2015-06-26 13:06:30 -06:00
|
|
|
|
|
|
|
echo "Last logins:"
|
|
|
|
last -5 $USER
|
|
|
|
echo
|
|
|
|
|
|
|
|
echo "$BASH $BASH_VERSION"
|
|
|
|
date -u +"%a %e %b %Y %H:%M:%S GMT"
|
|
|
|
date -u +"%FT%TZ %Y-%jT%TZ %Y-W%W-%wT%TZ"
|
|
|
|
date +"%FT%T %Y-%jT%T %Y-W%W-%wT%T"
|
|
|
|
astrodate.py --jd --mjd --suffix --spacing=8
|
|
|
|
echo
|
|
|
|
|
|
|
|
# Setup by subsystem
|
|
|
|
for f in `find $HOME/Library/Scripts/config -name '*.shlogin'`; do
|
|
|
|
source "$f"
|
|
|
|
done
|
|
|
|
|