Skip to content

Instantly share code, notes, and snippets.

@nimeshpahadi
Created April 26, 2017 05:30
Show Gist options
  • Save nimeshpahadi/f53873ef585da21366e20fa3d86e1456 to your computer and use it in GitHub Desktop.
Save nimeshpahadi/f53873ef585da21366e20fa3d86e1456 to your computer and use it in GitHub Desktop.
tmux configuration with zsh
# update & install
sudo apt-get update
sudo apt-get install tmux
vim .tmux.conf
# add following lines in .tmux.conf
# set Zsh as your default Tmux shell
set-option -g default-shell /bin/zsh
set -g prefix C-a
unbind C-b
# command delay? We don't want that, make it short
set -sg escape-time 1
# Set the numbering of windows to go from 1 instead
# of 0 - silly programmers :|
set-option -g base-index 1
setw -g pane-base-index 1
# Allow us to reload our Tmux configuration while
# using Tmux
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Getting interesting now, we use the vertical and horizontal
# symbols to split the screen
bind | split-window -h
bind - split-window -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment