Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piyoki/dot-tmux
https://github.com/piyoki/dot-tmux
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/piyoki/dot-tmux
- Owner: piyoki
- License: mit
- Created: 2024-02-08T14:35:29.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-10-10T13:00:01.000Z (3 months ago)
- Last Synced: 2024-10-14T07:36:06.743Z (3 months ago)
- Language: Shell
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TMUX Configuration
* [Reload Configuration](#reload-configuration)
* [Plugins Manager](#plugins-manager)
* [Copy and Paste](#copy-and-paste)## Reload Configuration
```bash
tmux source-file ~/.tmux.conf
```## Plugins Manager
Install Tmux Plugin Manager
```bash
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
```Put this at the bottom of ~/.tmux.conf
```bash
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin '[email protected]:user/plugin'
# set -g @plugin '[email protected]:user/plugin'# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
```Reload TMUX environment so TPM is sourced:
```bash
# type this in terminal if tmux is already running
tmux source ~/.tmux.conf
```Installing plugins
- Add new plugin to `~/.tmux.conf` with set `-g @plugin` '...'
- Press `prefix` + `I` (capital i, as in Install) to fetch the plugin.Uninstalling plugins
- Remove (or comment out) plugin from the list.
- Press `prefix + alt + u` (lowercase u as in uninstall) to remove the plugin.Key Bindings
`prefix + I`
- Installs new plugins from GitHub or any other git repository
- Refreshes TMUX environment`prefix + U`
- updates plugin(s)
`prefix + alt + u`
- remove/uninstall plugins not on the plugin list
## Copy and Paste
Source: https://www.seanh.cc/2020/12/27/copy-and-paste-in-tmux/
- `Ctrl + b [` enters copy mode
- `Ctrl + b ]` - pastes from tmux’s most recently created paste buffer (i.e. pastes the most recently copied text)
- `Ctrl + b =` or `tmux choose-buffer` on the command line shows you all the paste buffers and lets you choose one to paste from