1
0
Fork 0

screen is back, for better or worse

This commit is contained in:
Von Random 2016-09-23 16:27:41 +03:00
parent 62708b7222
commit ba874c4714
3 changed files with 22 additions and 2 deletions

2
bashrc
View file

@ -144,7 +144,7 @@ alias mountnrg='sudo mount -o loop,offset=307200'
# git # git
alias gss='command git status -s' alias gss='command git status -s'
alias gdf='command git diff' alias gdf='command git diff'
alias gci='command git commit -a' alias gci='command git commit'
alias gup='command git pull' alias gup='command git pull'
# tig # tig

20
screenrc Normal file
View file

@ -0,0 +1,20 @@
# window title hack
termcapinfo xterm*|rxvt*|kterm*|Eterm* 'hs:ts=\E]0;:fs=\007:ds=\E]0;\007'
defhstatus "$USER@^EH (screen)"
# so we don't have to enter the copy mode every time we want to scroll
termcapinfo rxvt*|xterm* ti@:te@
# the rest is pretty obvious
startup_message off
hardstatus off
defscrollback 10000
vbell off
bell off
autodetach on
term screen-256color-bce
defbce on
altscreen on
activity "activity on %n"
caption always '%{=}%{RW} %H %{Yw} %S %{Cw} %n %{wd} %t %{Bw} %-=%W '
bind w windowlist -b
bindkey ^[q prev
bindkey ^[w next

View file

@ -43,7 +43,7 @@ set -g status-left-length "20"
set -g status-right-length "40" set -g status-right-length "40"
set -g terminal-override "rxvt-unicode*:sitm@,ritm@,xterm-*:Tc" set -g terminal-override "rxvt-unicode*:sitm@,ritm@,xterm-*:Tc"
set -g default-terminal "screen-256color" set -g default-terminal "screen-256color"
set -g status-position "top" set -g status-position "bottom"
set -g status-justify "centre" set -g status-justify "centre"
set -g status-left-length "100" set -g status-left-length "100"
set -g status "on" set -g status "on"