My configuration files for Debian/Ubuntu applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 4 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # Tmux Plugin Manager
  2. [![Build Status](https://travis-ci.org/tmux-plugins/tpm.svg?branch=master)](https://travis-ci.org/tmux-plugins/tpm)
  3. Installs and loads `tmux` plugins.
  4. Tested and working on Linux, OSX, and Cygwin.
  5. ### Installation
  6. Requirements: `tmux` version 1.9 (or higher), `git`, `bash`.
  7. Clone TPM:
  8. ```bash
  9. $ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
  10. ```
  11. Put this at the bottom of `~/.tmux.conf` (`$XDG_CONFIG_HOME/tmux/tmux.conf`
  12. works too):
  13. ```bash
  14. # List of plugins
  15. set -g @plugin 'tmux-plugins/tpm'
  16. set -g @plugin 'tmux-plugins/tmux-sensible'
  17. # Other examples:
  18. # set -g @plugin 'github_username/plugin_name'
  19. # set -g @plugin 'git@github.com/user/plugin'
  20. # set -g @plugin 'git@bitbucket.com/user/plugin'
  21. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  22. run -b '~/.tmux/plugins/tpm/tpm'
  23. ```
  24. Reload TMUX environment so TPM is sourced:
  25. ```bash
  26. # type this in terminal if tmux is already running
  27. $ tmux source ~/.tmux.conf
  28. ```
  29. That's it!
  30. ### Installing plugins
  31. 1. Add new plugin to `~/.tmux.conf` with `set -g @plugin '...'`
  32. 2. Press `prefix` + <kbd>I</kbd> (capital i, as in **I**nstall) to fetch the plugin.
  33. You're good to go! The plugin was cloned to `~/.tmux/plugins/` dir and sourced.
  34. ### Uninstalling plugins
  35. 1. Remove (or comment out) plugin from the list.
  36. 2. Press `prefix` + <kbd>alt</kbd> + <kbd>u</kbd> (lowercase u as in **u**ninstall) to remove the plugin.
  37. All the plugins are installed to `~/.tmux/plugins/` so alternatively you can
  38. find plugin directory there and remove it.
  39. ### Key bindings
  40. `prefix` + <kbd>I</kbd>
  41. - Installs new plugins from GitHub or any other git repository
  42. - Refreshes TMUX environment
  43. `prefix` + <kbd>U</kbd>
  44. - updates plugin(s)
  45. `prefix` + <kbd>alt</kbd> + <kbd>u</kbd>
  46. - remove/uninstall plugins not on the plugin list
  47. ### More plugins
  48. For more plugins, check [here](https://github.com/tmux-plugins).
  49. ### Docs
  50. - [Help, tpm not working](docs/tpm_not_working.md) - problem solutions
  51. More advanced features and instructions, regular users probably do not need
  52. this:
  53. - [How to create a plugin](docs/how_to_create_plugin.md). It's easy.
  54. - [Managing plugins via the command line](docs/managing_plugins_via_cmd_line.md)
  55. - [Changing plugins install dir](docs/changing_plugins_install_dir.md)
  56. - [Automatic TPM installation on a new machine](docs/automatic_tpm_installation.md)
  57. ### Tests
  58. Tests for this project run on [Travis CI](https://travis-ci.org/tmux-plugins/tpm).
  59. When run locally, [vagrant](https://www.vagrantup.com/) is required.
  60. Run tests with:
  61. ```bash
  62. # within project directory
  63. $ ./run_tests
  64. ```
  65. ### Other goodies
  66. - [tmux-copycat](https://github.com/tmux-plugins/tmux-copycat) - a plugin for
  67. regex searches in tmux and fast match selection
  68. - [tmux-yank](https://github.com/tmux-plugins/tmux-yank) - enables copying
  69. highlighted text to system clipboard
  70. - [tmux-open](https://github.com/tmux-plugins/tmux-open) - a plugin for quickly
  71. opening highlighted file or a url
  72. - [tmux-continuum](https://github.com/tmux-plugins/tmux-continuum) - automatic
  73. restoring and continuous saving of tmux env
  74. ### License
  75. [MIT](LICENSE.md)