forked from mileszs/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscreenrc
86 lines (64 loc) · 2.37 KB
/
screenrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#
# ~/.screenrc
#
# Guy Who Tweaks This File and Adds Foul Language Comments:
# -- Miles Z. Sterrett <[email protected]>
#
# Original Author: Aaron Schaefer <[email protected]>
# Created: Sat 05 Aug 2006 06:38:47 PM EDT
#
# Settings used to initialize screen sessions
term screen-256color
# Change default escape sequence from C-a to a backslash
# escape `` # default ^Aa
# Do not display the copyright page
startup_message off # default: on
# Change the number of scrollback lines
defscrollback 10000 # default: 100
deflogin off
# Default shell
shell bash
# Defaul shell title - dynamic
shelltitle "] |bash"
# detach on hangup - if my dial-up session fails, screen will simply
# detach and let me re re-attach later.
autodetach on
# Make navigating between regions easier
bind s split
bind j focus down
bind k focus up
bindkey -k k5 prev # F5 for previous window
bindkey -k k6 next # F6 for next window
# Make resizing regions easier
bind = resize =
bind + resize +1
bind - resize -1
# Configure status bar at the bottom of the terminal
hardstatus alwayslastline
hardstatus string "%{= kb}[ %=%{w}%?%-Lw%?%{C}(%{W}%n*%f %t%?(%u)%?%{C})%{w}%?%+Lw%?%?%= %{b}][%{C} %Y.%m.%d %{W}%0c %{b}]"
# hardstatus string '%02=%0>%{= kw}%-Lw%50>%{=b bw} %n %t %{= kw}%+Lw%{= kw}%-1<%{-}%{=dd}'
caption always "%?%F%{=b bW}%:%{= bW}%? [%f%] %t - %h %-050=%H%-027= %D %d %M %Y, %C %A %{= .b}%{-}%{=dd}"
windowlist title "Num %10=Title %=Flags%"
windowlist string " %n - %10= %t %f"
# Timeout for displaying messages
msgwait 5
activity " Activity has appeared in window %n - %t"
# Support alternate screens so that, for example, when you
# quit out of vi, the display is redrawn as it was before vi
# redrew the full screen.
altscreen on
# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# Make scroll back work
termcapinfo xterm* ti@:te@
# Turn off the visual bell
vbell off
# Load the SSH Agent
# setenv SSH_AUTH_SOCK $HOME/.screen-ssh-agent
# screen 10 ssh-agent -a $SSH_AUTH_SOCK $SHELL
# Start on BASH Screen
screen 0 bash
# End of file