Linux Tmux tools use tmux.conf files

Source: Internet
Author: User
Tags git clone

SET-G prefix ^a

Unbind ^b
Bind a Send-prefix

Unbind ' "'
Bind-splitw-v
Unbind%
Bind \ Splitw-h
Bind r source-file ~/.tmux.conf \;

Unbind c-[
Unbind C]
Bind C-n New-session

Bind Tab Last-window

#set Status-interval 1
SET-OPTION-G status on
Set-option-g Status-interval 1
Set-option-g status-justify "left"
SET-OPTION-G Status-left-length 60
SET-OPTION-G Status-right-length 90
#选择分割的窗格
Bind K Selectp-u
Bind J selectp-d
Bind h Selectp-l
Bind L Selectp-r
#重新调整窗格的大小
Bind ^k Resizep-u 10
Bind ^j resizep-d 10
Bind ^h Resizep-l 10
Bind ^l Resizep-r 10
#swap to Panels
Bind ^u Swapp-u
Bind ^d swapp-d

Set-g STATUS-FG colour055
Set-g STATUS-BG colour032
Set-g default-terminal "Screen-256color"

# alignment
Set-option-g Status-justify Left

# lower left corner
# set-option-g Status-left ' #[bg=black,fg=green][#[fg=blue] #S #[fg=green]] '
Set-option-g Status-left-length 20
Set-option-g Allow-rename off #do not the change your window title automaticly.
Set-window-option-g Window-status-format ' #[fg=colour226,bold] #I: #W_ #{window_panes} '
# Add count for your window pannels.
Set-window-option-g Window-status-current-format ' #[fg=colour046,bold]<< #I: #W_ #{window_panes}>> '
Set-g status-right ' #[fg=colour226,bold][%y-%m-%d%h:%m:%s] '

# # Just for Mac settings.
# # Install Reattach-to-user-namespace first.
# # Copy-paste Integration
# # Use vim keybindings in copy mode
# # Setup ' V ' to begin selection as in Vim
# set-option-g Default-command "Reattach-to-user-namespace-l zsh"
# # If your is in OSX env, uncomment line up.

# Setw-g Mode-keys VI
# bind-key-t Vi-copy v begin-selection
# bind-key-t vi-copy y copy-pipe "Reattach-to-user-namespace pbcopy"
# unbind-t Vi-copy Enter
# bind-key-t vi-copy Enter copy-pipe "Reattach-to-user-namespace pbcopy"
# Bind] Run "Reattach-to-user-namespace pbpaste | Tmux Load-buffer-&& tmux Paste-buffer "

If "Test! -D ~/.TMUX/PLUGINS/TPM "\
"Run ' git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm '"

Set-option-g Mouse on

# List of Plugins
Set-g @plugin ' tmux-plugins/tmux-sensible '
Set-g @plugin ' Nhdaly/tmux-better-mouse-mode '
Set-g @plugin ' Nhdaly/tmux-scroll-copy-mode '
Set-g @plugin ' Tmux-plugins/tmux-resurrect '
Set-g @plugin ' Tmux-plugins/tmux-yank '

# setting for Tmux-resurrect
Set-g @resurrect-strategy-vim ' Session '
Set-g @resurrect-strategy-nvim ' Session '
Set-g @scroll-down-exit-copy-mode "on"
Set-g @scroll-in-moused-over-pane "on"
Set-g @scroll-without-changing-pane "on"
Set-g @emulate-scroll-for-no-mouse-alternate-buffer "on"

Run ' ~/.TMUX/PLUGINS/TPM/TPM '

Linux Tmux tools use tmux.conf files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.