Skip to content

Instantly share code, notes, and snippets.

@ryo-ARAKI
Last active April 28, 2020 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryo-ARAKI/07923755368e1f4ee0f67778a1cf2bca to your computer and use it in GitHub Desktop.
Save ryo-ARAKI/07923755368e1f4ee0f67778a1cf2bca to your computer and use it in GitHub Desktop.
# ~/.screenrc
# https://qiita.com/kamykn/items/9939b67e923dbb87f39c
# Character code
defutf8 on
defencoding utf8
encoding utf8 utf8
# Disable startup message & window flushing
startup_message off
vbell off
# Escape key
escape ^Zz
# Scroll setting
defscrollback 10000
termcapinfo xterm* ti@:te@ # Using mouse scroll
# Delete buffer
altscreen on
# Color
defbce on
term xterm-256color
# Status line
# hardstatus alwayslastline "%{= cd} %-w%{= dd} %n %t* %{-}%+w %= LoadAVG [%l] " # fmfs server
hardstatus alwayslastline "%{= rd} %-w%{= kd} %n %t* %{-}%+w %= LoadAVG [%l] " # JSS2
# Use default shell
shell -$SHELL
# Detouch
autodetach on
# X11 Forwarding setting
stuff 'echo "Existing DISPLAY =" $DISPLAY'
stuff 'dispnum=`echo $DISPLAY | sed -e s/localhost//`'
stuff 'export DISPLAY=$dispnum`'
stuff 'echo "New DISPLAY =" $DISPLAY`'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment