Created
January 29, 2010 18:27
-
-
Save indirect/289963 to your computer and use it in GitHub Desktop.
.screenrc
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
# Invoke screen with: | |
# /usr/bin/screen -xRR -S main -p bash | |
# '-xRR -S main' -- force join (or create) session named main | |
# '-p bash' -- open new screens to a window named bash, if one exists | |
## Screen Options ## | |
shell -/bin/bash # Tell screen your default shell. - makes bash read .profile | |
startup_message off # Turn off start message | |
msgwait 1 # Set messages timeout to one second | |
nethack on # Turn on nethack error messages | |
shelltitle '$ |bash' # Dynamic window titled for running program | |
escape ^Tt # Change the escape character from C-a to C-t | |
defscrollback 2000 # bigger scrollback buffer | |
defutf8 on # UTF-8 everywhere | |
altscreen on # restore window contents after using (e.g.) vi | |
# bind b to write the screen buffer to the OS X clipboard | |
bind b eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'" | |
# Last line is status: green hostname, window list in cyan, and time and date right aligned: | |
hardstatus alwayslastline "%{=}%{g}%H: %{b}%w %=%{g}%D, %m/%d %C%a" | |
# This status is the same as the above, except it puts "<username>@" in front of the hostname | |
#backtick 0 0 0 whoami # Set "%0`" to equal the output of "whoami" | |
#hardstatus alwayslastline "%{=b}%{G}%0`@%H: %{C}%w %=%{G}%D, %m/%d %C%a" | |
#autodetach off # Kill screen on terminal or ssh termination | |
# This is useful if you want a separate screen in every running terminal window | |
# but not if you have 'exec screen -XRR' in your .profile | |
## Keybindings ## | |
# F7='k7', F8='k8', F9='k9', F10='k;', F11='F1', F12='F2' | |
# Good things to bind to hotkeys: | |
# prev (go to previous screen) | |
# next (go to next screen) | |
# kill (kill this window) | |
# screen (create a new window) | |
# title (rename the current window) | |
# detach (detatch this session from this terminal) | |
#bindkey -k k8 prev | |
#bindkey -k k9 next | |
#bindkey -k k; kill | |
#bindkey -k F1 next | |
bindkey -k kP copy | |
## Initial Windows ## | |
# You end up at the last window to be opened | |
# Windows open to bash by default | |
#screen 5 | |
#screen 4 | |
#screen 3 | |
#screen 2 | |
#screen 1 | |
screen 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment