RF Eclectica Wiki

Try to learn something about everything, and everything about something - Thomas Huxley

User Tools

Site Tools


public:computers:tmux

02 : Computers

Tmux tips and tricks

prefix key

From https://gist.github.com/JikkuJose/7509315

Change “prefix” key to the backtick ` add to ~/.tmux.conf

unbind C-b
set-option -g prefix `
bind ` send-prefix

the last line means typing two backticks in succession will pass the second one to the application - so can still enter ` into app. running in the tmux window.

terminal colours

Colours in tmux… need TERM “xterm-256color”…

add to ~/.bashrc:

export TERM=xterm-256color

also to ~/.tmux.conf

set -g default-terminal "xterm-256color"

start programs in tmux

Something like this:

start_direwolf.sh
#!/bin/bash
 
session="Igate"
 
tmux start-server
 
tmux new-session -d -s $session
 
tmux rename-window "direwolf"
 
tmux selectp -t 0
tmux send-keys "direwolf -t 1 -T "%c" -c /home/gm4slv/direwolf.conf" C-m
public/computers/tmux.txt · Last modified: 04/04/24 21:37 BST by john