Skip to content

Instantly share code, notes, and snippets.

@awhitty
Created January 18, 2013 05:07
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 awhitty/4562484 to your computer and use it in GitHub Desktop.
Save awhitty/4562484 to your computer and use it in GitHub Desktop.
Screen dotfiles to be placed in ~/.screenrc
# Disable the startup message
startup_message off
# create a status line at the bottom of the screen. this will show the titles and locations of
# all screen windows you have open at any given time
hardstatus alwayslastline "%{= dR} %-Lw%50>%{= dG}%n%f* %{= dW}%t%{= dR}%+Lw%<"
# bind some function keys (k1 == F1, etc) for fast navigation through screen windows
#
#
# use F8 to turn the status bar off at the bottom of the screen
bindkey -k k8 hardstatus alwayslastline
# use F9 to turn the status bar on the bottom back on
bindkey -k k9 hardstatus alwaysignore
# the next 2 lines are set up to use F1 and F2 to move one screen forward or backward (respectively) through your screen session.
bindkey -k k1 prev
bindkey -k k2 next
# This changes the default control character (normally ^a) to something else
# (i do this to ease the use of nested screens so command characters dont conflict with each other)
escape "^Ff"
# set the ssh-agent on my workstation to forward my ssh key through my screen windows
# . .keychain/<hostname>-sh
# this will log screen errors to a daily log under the speficied directory
# logfile /home/<username>/logs/screen_%y-%m-%d_%0c
# the following lines are just to open and title several screen windows that i use throughout the day
# screen -t irc /bin/sh -c "softbeep irssi;bash"
screen -t home
screen -t local
screen -t local
#screen -t local
#screen -t local
# these last 2 lines are to set the focus on startup (which screen window we look at when screen finishes starting)
focus
select 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment