Skip to content

Instantly share code, notes, and snippets.

@sweshelo
Created May 14, 2021 07:10
Show Gist options
  • Save sweshelo/db7e3f4d06065ae9831753c1d28ae837 to your computer and use it in GitHub Desktop.
Save sweshelo/db7e3f4d06065ae9831753c1d28ae837 to your computer and use it in GitHub Desktop.
my tmux config
# tmuxを256色表示できるようにする
set-option -g default-terminal screen-256color
set -g terminal-overrides 'xterm:colors=256'
# prefixキーをC-qに変更
set -g prefix C-q
# C-bのキーバインドを解除
unbind C-b
# ステータスバーをトップに配置する
set-option -g status-position top
# #P => ペイン番号
# 最左に表示
set-option -g status-left '#H:[#P]'
# 現在時刻を表示
set-option -g status-right '[%Y-%m-%d(%a) %H:%M]'
# ステータスバーを1秒毎に描画し直す
set-option -g status-interval 1
# センタライズ(主にウィンドウ番号など)
set-option -g status-justify centre
# ステータスバーの色を設定する
set-option -g status-bg "#444444"
# status line の文字色を指定する。
set-option -g status-fg "#fefefe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment