diff --git a/dotfiles/system/etc/screenrc b/dotfiles/system/etc/screenrc new file mode 100644 index 0000000..c612561 --- /dev/null +++ b/dotfiles/system/etc/screenrc @@ -0,0 +1,26 @@ +defutf8 on +autodetach on +startup_message off +defscrollback 10240 + +# scroll through scrollback +termcapinfo xterm* ti@:te@ + +# use current bg color for erased chars +defbce on + +# remapping dangerous keybindings +bind k +bind ^k +bind . +bind ^\ +bind \\ +bind ^h +bind h +bind 'K' kill +bind 'I' login on +bind 'O' login off +bind '}' history + +# drop scrollback command +bind '/' eval "scrollback 0" "scrollback 15000" diff --git a/dotfiles/system/etc/screeenrc.over b/dotfiles/system/etc/screenrc.over similarity index 51% rename from dotfiles/system/etc/screeenrc.over rename to dotfiles/system/etc/screenrc.over index f444f46..2f9e177 100644 --- a/dotfiles/system/etc/screeenrc.over +++ b/dotfiles/system/etc/screenrc.over @@ -6,10 +6,8 @@ defscrollback 10240 # scroll through scrollback termcapinfo xterm* ti@:te@ -# let's get high-tech with 256 colors over here -#attrcolor b ".I" # allow bold colors - necessary for some reason -#termcapinfo xterm "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm" # tell screen how to set colors. AB = background, AF=foreground -defbce on # use current bg color for erased chars +# use current bg color for erased chars +defbce on # remapping dangerous keybindings bind k @@ -24,20 +22,10 @@ bind 'I' login on bind 'O' login off bind '}' history -# custom keybindings +# drop scrollback command bind '/' eval "scrollback 0" "scrollback 15000" -# status line -#backtick 1 5 5 true -#termcapinfo rxvt* 'hs:ts=\E]2;:fs=\007:ds=\E]2;\007' -#hardstatus string "screen (%n: %t)" -#caption string "%{= kw}%Y-%m-%d;%c %{= kw}%-Lw%{= kG}%{+b}[%n %t]%{-b}%{= kw}%+Lw%1`" -#caption always - -# environment -setenv DISPLAY ":0" - -# start with a bunch of windows +# my preferred default windows screen 0 sudo su - screen 1 sudo ionice -c 3 nice su - screen 2 sudo ionice -c 3 nice su - diff --git a/dotfiles/system/etc/zsh/zshrc b/dotfiles/system/etc/zsh/zshrc index 876cd98..2e3cbbe 100644 --- a/dotfiles/system/etc/zsh/zshrc +++ b/dotfiles/system/etc/zsh/zshrc @@ -23,6 +23,9 @@ alias Yall="noglob youtube-dl -o \"%(autonumber)s-%(title)s.%(ext)s\"" alias units="units -v" alias usystemctl="systemctl --user" +# apparently this is the only way of setting GNU Screen to UTF-8 +alias screen="screen -U" + # Edit the current command line in $EDITOR export VISUAL="nano -m" # enable mouse cursor autoload -U edit-command-line