Skip to content

Instantly share code, notes, and snippets.

@jandd
Created June 15, 2018 11:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jandd/fa80698c7a31a0489de4ee6826d0d9b5 to your computer and use it in GitHub Desktop.
Save jandd/fa80698c7a31a0489de4ee6826d0d9b5 to your computer and use it in GitHub Desktop.
Tmux presentation setup

Terminal presentation setup with tmux and powerline

This is a short description of my tmux and powerline setup used for presentations with terminal mirroring. I used this for the first time at Spring I/O 2018.

System preparation

Install required packages

I run my presentations on Debian GNU/Linux Stretch with zsh and tmux with a extended screen setup with these packages:

sudo apt install zsh tmux powerline

Set zsh as login shell

sudo chsh -s /usr/bin/zsh demouser

Enable powerline for zsh

add the following to the end of ~demouser/.zshrc:

powerline-daemon -q
source /usr/share/powerline/bindings/zsh/powerline.zsh

Enable powerline for tmux

add the following to ~demouser/.tmux.conf:

source "/usr/share/powerline/bindings/tmux/powerline.conf"

Start tmux session on presenter screen

Login as demouser open a terminal and run:

tmux new-session -c ~/projects/demodir -s demo zsh

Attach to tmux session on projector

Open another terminal window (Ctrl+Shift+T in GNOME Terminal) and attach to the same tmux session:

tmux attach-session -t demo

move the terminal to the demo screen / projector and adapt font size to be readable by the audience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment