Skip to content

Instantly share code, notes, and snippets.

@pharmazone
Created August 29, 2013 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pharmazone/6375680 to your computer and use it in GitHub Desktop.
Save pharmazone/6375680 to your computer and use it in GitHub Desktop.
Screen RC with IP addr
startup_message off
vbell off
defscrollback 512
shell -$SHELL
shelltitle sh
autodetach on
# enable SHIFT-PGUP / SHIFT-PGDOWN scroll
termcapinfo rxvt ti@:te@
# change window with ALT-Q ALT-W
bindkey "^[q" prev
bindkey "^[w" next
# F1-F4 switch
# bindkey -k k1 select 1
# bindkey -k k2 select 2
# bindkey -k k3 select 3
# bindkey -k k4 select 4
# startup sessions
screen -t top 0 htop
screen -t sh 1
select 1
backtick 2 1200 1200 /home/wolf/ipaddr
# status
hardstatus alwayslastline '%{= M}%H%{b} %2` %{= G} %l %= %{= w}%-w%{+b r}%n*%t%{-b r}%{w}%+w %= %{c}%d %D %{B}%c '
# add CPU idle/sustem/user/interrupt stats
#backtick 100 5 5 tail -1 /var/tmp/mprem.stats.top
#caption always '%{= wk} %200` %= %100` %='
#!/bin/bash
/sbin/ifconfig|grep inet|head -1|sed 's/\:/ /'|awk '{print $3}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment