Last active
February 26, 2020 05:12
-
-
Save rsuchecki/be2e8bdeee9f6b9cd09b6239dd82422f to your computer and use it in GitHub Desktop.
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
# Ensure each new screen ends up with it's own history file bind c screen bash -ic 'HISTFILE=~/.bash_history.${WINDOW} bash' | |
bind c screen bash -ic 'HISTFILE=~/.bash_history.${WINDOW} bash -l' | |
bind ^C screen bash -ic 'HISTFILE=~/.bash_history.${WINDOW} bash -l' | |
# some default tabs | |
screen -t "bash" bash -l | |
#termcapinfo xterm ti@:te@ | |
# Bind F8 and F9 to previous and next screen window | |
bindkey -k k8 prev | |
bindkey -k k9 next | |
#Increase scrollback buffer | |
defscrollback 10000 # default: 100 | |
autodetach on | |
startup_message off | |
hardstatus alwayslastline | |
shelltitle 'bash' | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%d/%m %{W}%C%A%{g}]' | |
# 256 colors | |
attrcolor b ".I" | |
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' | |
defbce on | |
#prevent terminal pollution left over from using e.g. less | |
altscreen on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment