Created
August 29, 2013 08:43
-
-
Save pharmazone/6375680 to your computer and use it in GitHub Desktop.
Screen RC with IP addr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` %=' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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