dotfiles/zprofile

28 lines
576 B
Text
Raw Normal View History

2011-05-03 21:53:50 -07:00
# .zprofile
# vim:ft=zsh
#
# Login shell setup
#
# Eryn Wells <eryn@erynwells.me>
2011-05-03 21:53:50 -07:00
2012-11-29 15:18:57 -08:00
print_heading -l 1 'Initializing login shell'
[ -e $HOME/.profile ] && source $HOME/.profile
list_tmux_sessions()
{
tmux_out=`tmux list-sessions 2>/dev/null`
[[ -z "$tmux_out" || -n "$TMUX" ]] && return
echo "You have the following active tmux sessions:"
for session in ${(f)tmux_out}; do
echo " $session"
done
echo
}
list_tmux_sessions
[ -e $HOME/.profile.$SYS ] && source $HOME/.profile.$SYS
[ -e $HOME/.profile.local ] && source $HOME/.profile.local