ユーザ用ツール

サイト用ツール


serverapps:tmux:plugin

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
serverapps:tmux:plugin [2022/12/07 17:08]
hayashi
serverapps:tmux:plugin [2023/10/09 22:30] (現在)
hayashi [tcsh@FreeBSD]
行 44: 行 44:
   set -g @plugin 'tmux-plugins/tmux-resurrect'   set -g @plugin 'tmux-plugins/tmux-resurrect'
  
-prefix + I で plugin 読み込み+===== plugin 読み込み ===== 
 + 
 +**prefix + I((大文字I(アイ) ))** で plugin 読み込みます 
 +===== 起動 ===== 
 + 
  
 なお、**bash**に依存していますので、それ以外のshellを使用している場合には以下のような感じで起動 なお、**bash**に依存していますので、それ以外のshellを使用している場合には以下のような感じで起動
行 50: 行 55:
   bash -c "tmux new -s Work"   bash -c "tmux new -s Work"
  
-==== Key bindings ====+===== Key bindings =====
  
   prefix + Ctrl-s - save   prefix + Ctrl-s - save
   prefix + Ctrl-r - restore   prefix + Ctrl-r - restore
 +
 +以下を設定すると
 +  set -g @resurrect-save 'S'
 +  set -g @resurrect-restore 'R'
 +Key bindingは
 +  prefix + Shift-s - save
 +  prefix + Shift-r - restore
  
 ===== tmux-continuum ===== ===== tmux-continuum =====
行 63: 行 75:
   set -g @plugin 'tmux-plugins/tmux-resurrect'   set -g @plugin 'tmux-plugins/tmux-resurrect'
   set -g @plugin 'tmux-plugins/tmux-continuum'   set -g @plugin 'tmux-plugins/tmux-continuum'
 +
 +==== tcsh@FreeBSD ====
 +tmux-continuumもbashやmacosに依存しているため、ほかの環境だと動作が怪しい
 +で、取り急ぎだがLogin時に自動でtmuxの起動とrestoreを行うように設定してみた
 +
 +<file config ~/.cshrc>
 +ps -ax | grep tmux | grep -v grep | wc -l > /dev/null || bash -c "tmux new -d ~/.tmux/plugins/tmux-resurrect/scripts/restore.sh"
 +</file>
 +
 +
 +
  
 ===== 参考 ===== ===== 参考 =====
serverapps/tmux/plugin.1670400535.txt.gz · 最終更新: 2022/12/07 17:08 by hayashi