Skip to content

Instantly share code, notes, and snippets.

@rc5hack
Created August 2, 2013 14:00
Show Gist options
  • Save rc5hack/6140111 to your computer and use it in GitHub Desktop.
Save rc5hack/6140111 to your computer and use it in GitHub Desktop.
screen(1) stuff
alias live='
if [ -n "`screen -ls | grep LIVE`" ]; then
if [ -n "`screen -ls | grep LIVE | grep Attached`" ]; then
if [ -z "`echo $TERMCAP | grep screen`" ]; then
echo "Enter into Atached screen...";
sleep 2;
screen -x LIVE;
else
echo "Already in LIVE";
fi
else
screen -r LIVE;
fi
else
screen -S LIVE -c .screenrc.live ;
fi'
vbell off
hardstatus alwayslastline '%{= dg}[ %{g}%H %{g}][%= %{= dg}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{g}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
screen -t root 0 sudo -i
screen -t jabber 1 mcabber
screen -t irc 2 irssi -c irc.freenode.net -n nick -w password
screen -t rss 3 snownews -u
screen -t bash 4
startup_message off
bindkey -k F2 next # switch tabs with <--F11 F12-->
bindkey -k F1 prev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment