# file: ~/.tmux.conf
# v1.0.1
# this is your <<prefix>>
# remap prefix from 'C-b' to 'C-j', because it is the only letter left from the
# bash shortcuts with the Control option
unbind C-b
set-option -g prefix C-j
bind-key C-j send-prefix
# v1.0.2
# enable vi mode
set-window-option -g mode-keys vi
# confirm by <<prefix>> :list-keys -t vi-copy
# v1.0.3
# increase the number of lines - obs RAM consuming
set-option -g history-limit 9000
#v 1.0.4 easier copy paste
# src: https://leanside.com/2014/01/copy-paste-in-tmux/
setw -g mode-keys vi # vim-style movement
# in normal tmux mode#
# `tmux prefix + Escape` starts copy mode.
bind Escape copy-mode
# `prefix + p` pastes the latest buffer
bind p paste-buffer
#
# # in copy mode…
# `v` begins a selection. (movement keys to select the desired bits)
bind -t vi-copy v begin-selection
# `y` copies the current selection to one of tmux's "paste buffers"
bind -t vi-copy y copy-selection
# `V` changes between line- and columnwise selection
bind -t vi-copy V rectangle-toggle
# when in copy mode act like vim for Yanking
bind -t vi-copy Y copy-end-of-line
# ?!
bind + delete-buffer
# v1.0.5
# enable search results highlighting in copy mode
# src: https://github.com/tmux-plugins/tmux-copycat
# install by : <<prefix> , I
set -g @plugin 'tmux-plugins/tmux-copycat'
# v1.0.5
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# src: https://github.com/tmux-plugins/tpm
run '~/.tmux/plugins/tpm/tpm'
#
#
# Usage:
# ---------------------------------------------------------
# place into your ~/.tmux.conf
# reload by :
# <<prefix>>, :source-file ~/.tmux.conf when in tmux session
#
# reload plugings by:
# Ctrl + J, U
#
# v1.0.6
# A short cheat-sheet
# tmux sessions management
# tmux new -s sess-name
# tmux attach -t sess-name
#
# those requie <<prefix>>
# :new<CR> new session
# s list sessions
# $ name session
#
# tmux windows handling
# c new window
# , name window
# w list windows
# f find window
# & kill window
# q show windows numbers
# x kill window
#
# VersionHistory
# ---------------------------------------------------------
# export version=1.0.6
# ---------------------------------------------------------
# 1.0.6 -- 2016-08-23 23:12:29 -- ysg -- added cheat-sheet
# 1.0.5 -- 2016-08-23 22:04:23 -- ysg -- search highlight with plugins
# 1.0.4 -- 2016-08-17 08:38:02 -- ysg -- easier copy paste
# 1.0.3 -- 2016-07-20 09:34:18 -- ysg -- vi copy mode
# 1.0.2 -- 2016-07-20 09:28:18 -- ysg -- vi copy mode
# 1.0.1 -- 2016-07-12 23:29:33 -- ysg -- Ctrl + J as prefix
# 1.0.0 -- 2016-07-12 23:29:10 -- ysg -- orginal version
#
# eof file: ~/.tmux.conf
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!