Skip to content

Instantly share code, notes, and snippets.

@cottrell
Created May 26, 2015 19:16
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 cottrell/2de6b1076236b0b39071 to your computer and use it in GitHub Desktop.
Save cottrell/2de6b1076236b0b39071 to your computer and use it in GitHub Desktop.
screenrc notes
# tabbing like terminal
bindkey -d \0331 select 0
bindkey -d \0332 select 1
bindkey -d \0333 select 2
bindkey -d \0334 select 3
bindkey -d \0335 select 4
bindkey -d \0336 select 5
bindkey -d \0337 select 6
bindkey -d \0338 select 7
bindkey -d \0339 select 8
bindkey -d \0330 select 9
bindkey -d \033? help
# alt-n new window
bind c stuff "screen -x chdir \$PWD;screen^M"
bindkey -d \033n stuff "screen -x chdir \$PWD;screen^M"
# skip the startup message
startup_message off
# go to home dir
chdir
# Automatically detach on hangup.
autodetach on
# Change default scrollback value for new windows
defscrollback 10000
# start with visual bell as default
vbell on
vbell_msg "bell on %t (%n)"
activity "Activity in %t(%n)"
# shelltitle "shell"
# shell -$SHELL
# look and feel
caption always "%{= bb}%{+b w}%h %=%{=b rw} %l %{= db} ${USER}@%H %{= dg}%c"
hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment