Skip to content

Instantly share code, notes, and snippets.

@dewaka
Created January 6, 2019 14:11
Show Gist options
  • Save dewaka/ec7c77eb47488028e5e2b8260f0d38a3 to your computer and use it in GitHub Desktop.
Save dewaka/ec7c77eb47488028e5e2b8260f0d38a3 to your computer and use it in GitHub Desktop.
# source '/usr/share/tmux/powerline.conf'
# source '/usr/lib/python3.5/site-packages/powerline/bindings/tmux/powerline.conf'
# Default shell to fish
set-option -g default-shell "/home/chathura/.nix-profile/bin/fish"
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
bind a last-window
# set vim mode
set -g mode-keys vi
# enable mouse features for terminals that support it
set -g mouse on
# undo window list centering
set -g status-justify left
# start index at 1
set -g base-index 1
setw -g pane-base-index 1
# renumber windows after one gets deleted
set-option -g renumber-windows on
# Identify activity in other windows
setw -g monitor-activity on
# set -g visual-activity on
# Search back to last prompt (mnemonic: "[b]ack"); searches for pure prompt character ❯
# From https://github.com/wincent/wincent/blob/master/roles/dotfiles/files/.tmux.conf
bind-key b copy-mode\; send-keys -X start-of-line\; send-keys -X search-backward "❯"
# THEME
# source ~/.tmux/tmux-dark.conf
# PLUGINS
set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'
# set -g @plugin 'tmux-plugins/tmux-sessionist'
# set -g @plugin 'tmux-plugins/tmux-continuum'
# set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-open'
# # For vim-tmux-navigator integration for easy switching panes when vim is present
set -g @plugin 'christoomey/vim-tmux-navigator'
# true color support
# set -g default-terminal tmux-256color
# If I want to change the save interval to one hour
# set -g @continuum-save-interval '60'
# must be at the bottom
run '~/.tmux/plugins/tpm/tpm'
# send C-l key to clear screen
bind C-l send-keys 'C-l'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment