Browse Source

Update "shell_setup.sh"

Added GNU Screen configuration
master
Akshay 4 days ago
parent
commit
4b72364946
1 changed files with 37 additions and 1 deletions
  1. +37
    -1
      shell_setup.sh

+ 37
- 1
shell_setup.sh View File

@ -33,7 +33,43 @@ ${SUDO} echo "source /usr/share/doc/fzf/examples/key-bindings.zsh" >> ~/.zshrc
${SUDO} echo 'alias vi="vim"' >> ~/.zshrc ${SUDO} echo 'alias vi="vim"' >> ~/.zshrc
# Configure screen # Configure screen
echo "defshell -zsh" > ~/.screenrc
echo "# 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'
# Enables use of shift-PgUp and shift-PgDn
#termcapinfo xterm|xterms|xs|rxvt ti@:te@
# Erase background with current bg color
#defbce "on"
# Enable 256 color term
#term xterm-256color
# Cache 30000 lines for scroll back
defscrollback 300000
# New mail notification
#backtick 101 30 15 $HOME/bin/mailstatus.sh
hardstatus alwayslastline
# Very nice tabbed colored hardstatus line
hardstatus string '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n: %H%{= Kr} %{= Kr}]%{= Kd}%+w %-= %{KG} %H %{KW}|%{KY}%110`%{KW}|%D %M %d %Y%{= Kc} %C%A%{-}'
#hardstatus string "%{= KW} %H [%` %h] %{= Kw}|%{-} %-Lw%{= bW}%n%f %t%{-}%+Lw %=%C%a %Y-%M-%d"
#hardstatus string '%?%F%{;4}%?%3n %t%? [%h]%?'
#hardstatus alwayslastline "%{rk}%H %{gk}%c %{yk}%M%d %{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?"
# change command character from ctrl-a to ctrl-b (emacs users may want this)
#escape ^Bb
# Hide hardstatus: ctrl-a f
bind f eval "hardstatus ignore"
# Show hardstatus: ctrl-a F
bind F eval "hardstatus alwayslastline"
defshell -zsh" > ~/.screenrc
# Configure VIM # Configure VIM
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim


Loading…
Cancel
Save