// ============================================================================ = Beispiel 1: lokal Work = tmux layout um ein Skript zu entwickeln. == tmux layout == * tmux session * window doc * window src * window run === Commands === cd $PROJ_DIR Start tmux tmux open new window C-a c rename window to 'doc' C-a , doc open new window C-a c rename window to 'src' C-a , work open new window C-a c rename window to 'run' C-a , run == Skript erstellen == tmux: window 'work' Path Beispiele/testskript vi run.sh === Skript Inhalt === * echo Skript name * Loop, delay 1 Sekunden, Print loop count === Skript ausführen === tmux: window 'run' run 'run.sh' == tmux Layout Skripten == source Datei tm_work.rc call Funktion tm_work // ============================================================================ = Beispiel 2: remove Ausführen = * kopiere Testskript zu remote Target scp run.sh damicha@: == remote tmux session == ssh * tmux session * window sys * window run, 2 panes === Commands === Start tmux tmux open new window C-a c rename window to 'sys' C-a , doc open new window C-a c rename window to 'run' C-a , work new pane C-a % == Führe Skript aus == window 'sys' ls window 'run' pane 1 ./run.sh | tee run.log window 'run' pane 2 watch ls -la run.log == Detach Session, Stopp ssh Verbinding == detach C-a d stopp ssh Verbinding C-d === Zeige tmux Zustand auf remote PC === tmux list-sessons tmux attach-session -r == Starte ssh Verbindung, Attach Session == ssh tmux list-sessons tmux attach-session // ============================================================================ = Anderes = == Suchfunktion im Vi Stil == == Mehrere Copy'n'Paste Buffer == // ============================================================================ // vim: filetype=asciidoc