Skip to content

Instantly share code, notes, and snippets.

@akheron
Last active August 29, 2015 14:20
Show Gist options
  • Save akheron/42e1c22d8908d1fa2e58 to your computer and use it in GitHub Desktop.
Save akheron/42e1c22d8908d1fa2e58 to your computer and use it in GitHub Desktop.
My tmux config
# Keybindings
unbind C-b
set -g prefix C-z
bind z send-prefix
bind escape copy-mode
bind C-z last-window
bind p select-pane -t :.-1
bind n select-pane -t :.+1
# Disable italic/oblique font in terminal. See:
#
# http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1460
# http://sourceforge.net/p/tmux/mailman/message/27366130/
#
# Generate the screen-noit terminfo like this:
#
# mkdir -p $HOME/.terminfo/
# infocmp screen-256color | sed \
# -e 's/^screen[^|]*|[^,]*,/screen-noit|screen with proper standout,/' \
# -e 's/smso=[^,]*,/smso=\\E[7m,/' \
# -e 's/rmso=[^,]*,/rmso=\\E[27m,/' \
# -e 's/ \?sitm=[^,]*,//' \
# -e 's/ \?ritm=[^,]*,//' > /tmp/terminfo
# tic /tmp/terminfo
# echo "set -g default-terminal 'screen-noit'" >> ~/.tmux.conf
#
set -g default-terminal screen-noit
# Colors
set -g status-bg yellow
set -g status-fg black
set -g pane-active-border-style fg=yellow
set -g pane-active-border-style bg=yellow
# Plugins
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-yank \
tmux-plugins/tmux-copycat \
tmux-plugins/tmux-open \
'
run-shell '~/.tmux/plugins/tpm/tpm'
# tmux-yank
set -g @yank_selection 'primary'
@akheron
Copy link
Author

akheron commented May 13, 2015

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