# 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
# source: https://tmuxcheatsheet.com
# tmux sessions management
# tmux new -s sess-name
# tmux attach -t sess-name
#
# those require <<prefix>>
# :new<CR> new session
# ----------------------
# s list sessions
# $ rename session
#
# tmux sessions handling
# those require <<prefix>>
# ----------------------
# s list-sessions
#
# tmux windows handling
# those require <<prefix>>
# tmux windows handling
# ----------------------
# c new window
# , rename window
# w list windows
# f find window
# q show windows numbers
# x kill window
# swap-window -t 0
#
#
# VersionHistory
# ---------------------------------------------------------
# export version=1.0.9
# ---------------------------------------------------------
#
# 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 !!!!