Created
August 3, 2015 14:11
-
-
Save zessx/793e608f2ba07dae2dfc to your computer and use it in GitHub Desktop.
Screen configuration
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
shell -$SHELL | |
startup_message off | |
activity "%c activity -> %n%f %t" | |
caption always "%{= Wk}%-w%{= Bw}%n %t%{-}%+w %-=" | |
vbell off | |
term screen-256color | |
bindkey -k k5 prev # F5 to move one screen backward | |
bindkey -k k6 next # F6 to move one screen forward | |
bindkey -k k7 focus top # F7 to change focus backward | |
bindkey -k k8 focus # F8 to change focus forward | |
bind '+' screen # Ctrl+A '+' to create a new window | |
bind '-' kill # Ctrl+A '-' to kill current window | |
bind 'Z' quit # Ctrl+A 'Z' to quit screen | |
screen -t "local" 1 bash | |
screen -t "watch" 2 ssh 'user@host' -t "cd /var/www/html; bash --login;" | |
screen -t "dev" 3 ssh 'user@host' -t "cd /var/www/html/; bash --login" | |
screen -t "prod" 4 ssh 'user@host' -t "cd /var/www/html/; bash --login" | |
select local | |
altscreen on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment