2011-05-03 21:53:50 -07:00
|
|
|
# .zprofile
|
|
|
|
# vim:ft=zsh
|
2012-04-23 15:03:03 -07:00
|
|
|
#
|
|
|
|
# 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'
|
2012-08-07 11:19:43 -07:00
|
|
|
|
2012-04-23 15:03:03 -07:00
|
|
|
[ -e $HOME/.profile ] && source $HOME/.profile
|
|
|
|
|
2013-01-07 09:51:43 -08:00
|
|
|
list_tmux_sessions()
|
|
|
|
{
|
|
|
|
tmux_out=`tmux list-sessions 2>/dev/null`
|
2013-03-12 14:01:55 -07:00
|
|
|
[[ -z "$tmux_out" || -n "$TMUX" ]] && return
|
2013-01-07 09:51:43 -08:00
|
|
|
|
|
|
|
echo "You have the following active tmux sessions:"
|
|
|
|
for session in ${(f)tmux_out}; do
|
|
|
|
echo " $session"
|
|
|
|
done
|
|
|
|
echo
|
|
|
|
}
|
|
|
|
|
|
|
|
list_tmux_sessions
|
2012-04-23 15:03:03 -07:00
|
|
|
|
|
|
|
[ -e $HOME/.profile.$SYS ] && source $HOME/.profile.$SYS
|
|
|
|
[ -e $HOME/.profile.local ] && source $HOME/.profile.local
|