Skip to content

Instantly share code, notes, and snippets.

@suin
Last active April 10, 2020 08:01
Show Gist options
  • Save suin/6154938 to your computer and use it in GitHub Desktop.
Save suin/6154938 to your computer and use it in GitHub Desktop.
# ----------------- #
# ウィンドウの振る舞い #
# ----------------- #
# ウィンドウ番号1から開始する
set-option -g base-index 1
# マウスでスクロールできるようにする
set-window-option -g mode-mouse on
# これを有効にすると、MacでCommand+Cなどができなくなるが、
# Optionを押しながら範囲選択すると、コピーできる。
# ------------------- #
# ステータスバーの見た目 #
# ------------------- #
# 色コード: http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
# 256色サポート
set-option -g default-terminal "xterm"
# ステータスバーの色
set -g status-fg colour253
set -g status-bg colour237
# 非アクティブなウィンドウの色
set-window-option -g window-status-fg default
set-window-option -g window-status-bg default
# アクティブなウィンドウの色
set-window-option -g window-status-current-fg colour16
set-window-option -g window-status-current-bg colour178
# ステータスバーの位置
set-option -g status-position bottom
# ステータスバー左隅に出すもの
set -g status-left '#[fg=colour32, bold]suin'
# ステータスバー右隅に出すもの
set -g status-right ''
# ---------- #
# キーバインド #
# ---------- #
# ウィンドウ強制終了
bind k kill-window
itermの設定
term 起動時に tmux 立ち上げる:
Preference > Profile > General
に行って
Command
Send text as start:
tmux attach -t base || tmux new -s base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment