File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Jason Cannavale <jason.cannavale@rackspace.com>
1717Jay Pipes <jaypipes@gmail.com>
1818Jesse Andrews <anotherjesse@gmail.com>
1919Johannes Erdfelt <johannes.erdfelt@rackspace.com>
20+ Josh Kearney <josh@jk0.org>
2021Justin Shepherd <galstrom21@gmail.com>
2122Ken Pepple <ken.pepple@rabbityard.com>
2223Kiall Mac Innes <kiall@managedit.ie>
Original file line number Diff line number Diff line change @@ -748,14 +748,18 @@ EOF
748748 restart_service mysql
749749fi
750750
751+ if [ -z " $SCREEN_HARDSTATUS " ]; then
752+ SCREEN_HARDSTATUS=' %{= .} %-Lw%{= .}%> %n%f %t*%{= .}%+Lw%< %-=%{g}(%{d}%H/%l%{g})'
753+ fi
754+
751755# Our screenrc file builder
752756function screen_rc {
753757 SCREENRC=$TOP_DIR /stack-screenrc
754758 if [[ ! -e $SCREENRC ]]; then
755759 # Name the screen session
756760 echo " sessionname stack" > $SCREENRC
757761 # Set a reasonable statusbar
758- echo ' hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %= %H "' >> $SCREENRC
762+ echo ' hardstatus alwayslastline "$SCREEN_HARDSTATUS "' >> $SCREENRC
759763 echo " screen -t stack bash" >> $SCREENRC
760764 fi
761765 # If this service doesn't already exist in the screenrc file
@@ -792,7 +796,7 @@ function screen_it {
792796screen -d -m -S stack -t stack -s /bin/bash
793797sleep 1
794798# set a reasonable statusbar
795- screen -r stack -X hardstatus alwayslastline " %-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %= %H "
799+ screen -r stack -X hardstatus alwayslastline " $SCREEN_HARDSTATUS "
796800
797801# Horizon
798802# -------
You can’t perform that action at this time.
0 commit comments