Last active
July 1, 2024 07:17
-
-
Save ryo-ARAKI/07923755368e1f4ee0f67778a1cf2bca to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# ~/.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`' |
This file contains hidden or 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
# ~/.tmux.conf | |
# Character code | |
set -g default-terminal "tmux-256color" | |
# Disable startup message | |
set -g display-panes-time 1000 | |
set -g display-time 1000 | |
# Escape key | |
set -g prefix C-z | |
unbind C-b | |
bind C-z send-prefix | |
# Scroll setting | |
set -g history-limit 10000 | |
# Mouse scroll | |
set -g mouse on | |
# Delete buffer (alternative screen) | |
setw -g alternate-screen on | |
# Color | |
set -g default-terminal "tmux-256color" | |
# Status line | |
set -g status-bg red | |
set -g status-fg white | |
setw -g window-status-current-bg blue | |
setw -g window-status-current-fg white | |
setw -g window-status-current-format "#I #W*" | |
setw -g window-status-format "#I #W" | |
# Hardstatus line | |
set -g status-left "" | |
set -g status-right "LoadAVG [#(uptime | awk '{print \$10, \$11, \$12}')]" # Adjust this as per your system | |
# Use default shell | |
set-option -g default-shell $SHELL | |
# Autodetach | |
set -g detach-on-destroy on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment