/tmux-config

My tmux configuration, mirror from Gitlab

Primary LanguageShell

Logo
Dynamo's tmux configuration

Stargazers Issues

Features

  • Easy navigation
  • Smoothly navigation with vim
  • Automatically set title of window
  • Automatically start, save, restore tmux session
  • Easy to search text, copy and paste text
  • Easymotion navigation to select text
  • POMODORO timer

Requirements

Installation

Clone this repository to ~/.config/tmux, and link config file to ~/.tmux.conf

rm -rf ~/.config/tmux
git clone https://gitlab.com/dynamo-config/tmux ~/.config/tmux
ln -sf ~/.config/tmux/config ~/.tmux.conf

Keybindings

  • On my PC at home: prefix is Ctrl-a
  • On my tablet: prefix is Ctrl-x
  • On my PC at office: prefix is Ctrl-s
  • Otherwise: prefix is Ctrl-b

I use vi mode keys for tmux. Here is some keybindings that I changed versus tmux default configuration:

Key Mode Description
prefix + Escape normal Go to copy mode
v copy Select text in pan
prefix + c normal Create new window from current folder
Ctrl-Down normal Create new window from current folder
Ctrl-Right normal Move to next window
Ctrl-Left normal Move to previous window
Ctrl-Up normal Rename window
prefix + | normal Split window horizontal (right)
prefix + - normal Split window vertical (down)
Shift-Left normal Move to left pane
Shift-Right normal Move to right pane
Shift-Up normal Move to up pane
Shift-Down normal Move to up pane
C-\ normal Move to last pane
prefix + Ctrl-I normal Install all plugins of this configuration
prefix + Tab normal Select text in window by fzf
prefix + / normal Search text with regex
prefix + Ctrl-f normal Search text that represent file
prefix + Alt-i normal Search text that represent ip
prefix + Alt-i normal Search text that represent ip
prefix + y normal Copy current command line to clipboard
prefix + Y normal Copy curent pane's current working directory to clipboard
prefix + y copy Copy selection text to clipboard
prefix + Y copy Copy selection text to clipboard, and paste it to command line
prefix + p normal Start a POMODORO timer
prefix + j normal Easymotion navigation to select text

License

Copyright © 2019 Tran Duc Nam me@dynamotn.dev

The project is licensed under GPLv3. You can read it online at here.