Skip to content

Instantly share code, notes, and snippets.

@ivan4th
Created November 18, 2015 10:02
Show Gist options
  • Save ivan4th/ad0b1621416e4c7ea1d8 to your computer and use it in GitHub Desktop.
Save ivan4th/ad0b1621416e4c7ea1d8 to your computer and use it in GitHub Desktop.
defscrollback 10000
termcapinfo xterm|xterms|xs|rxvt ti@:te@
startup_message off
hardstatus alwayslastline
hardstatus string '%{= kK}%-Lw%{= KW}%50>%n%f* %t%{= kK}%+Lw%< %{= kG}%-=%D %d %M %Y %c%{-}'
altscreen on
# screen -t server 0 /home/ivan4th/work/cms/run-server.sh
# screen -t swank-js 1 /home/ivan4th/bin/run-swank-js.sh
# screen -t ipython 3 ipython
# screen -t htop 0 htop
screen -t bash 0
# http://serverfault.com/questions/126009/how-do-i-ask-screen-to-behave-like-a-standard-bash-shell
defshell -bash
# http://www.linuxquestions.org/questions/linux-general-1/screen-screenrc-how-to-use-the-right-ctrl-arrow-to-go-left-and-right-in-windows-764511/
bindkey "^[[1;5D" prev # change window with ctrl-left
bindkey "^[[1;5C" next # change window with ctrl-right
# https://gist.github.com/enlavin/1023074 ...
# https://github.com/majutsushi/etc/blob/master/screen/screenrc
hardcopydir $HOME/.cache/screen
logfile $HOME/.cache/screen/screenlog.%n
bufferfile $HOME/.cache/screen/screen-exchange
# bind w eval writebuf "exec !!! xclip -selection clipboard -i $HOME/.cache/screen/screen-exchange"
bind y exec !!! xclip -selection clipboard -o
# https://github.com/kokikoki/home/blob/master/.screenrc
bindkey -m ' ' eval 'msgwait 0' 'stuff \040' writebuf 'exec !!! xclip -selection clipboard ${HOME}/.cache/screen/screen-exchange' 'msgwait 0'
bindkey -m Y eval 'msgwait 0' 'stuff Y' writebuf 'exec !!! xclip -selection clipboard ${HOME}/.cache/screen/screen-exchange' 'msgwait 0'
bindkey -m y eval 'msgwait 0' 'stuff y' writebuf 'exec !!! xclip -selection clipboard ${HOME}/.cache/screen/screen-exchange' 'msgwait 0'
bindkey -m w eval 'msgwait 0' 'stuff W' writebuf 'exec !!! xclip -selection clipboard ${HOME}/.cache/screen/screen-exchange' 'msgwait 0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment