My configuration files for Debian/Ubuntu applications
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

4 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # Help, tpm not working!
  2. Here's the list of issues users had with `tpm`:
  3. <hr />
  4. > Nothing works. `tpm` key bindings `prefix + I`, `prefix + U` not even
  5. defined.
  6. Related [issue #22](https://github.com/tmux-plugins/tpm/issues/22)
  7. - Do you have required `tmux` version to run `tpm`?<br/>
  8. Check `tmux` version with `$ tmux -V` command and make sure it's higher or
  9. equal to the required version for `tpm` as stated in the readme.
  10. - ZSH tmux plugin might be causing issues.<br/>
  11. If you have it installed, try disabling it and see if `tpm` works then.
  12. <hr />
  13. > Help, I'm using custom config file with `tmux -f /path/to/my_tmux.conf`
  14. to start Tmux and for some reason plugins aren't loaded!?
  15. Related [issue #57](https://github.com/tmux-plugins/tpm/issues/57)
  16. `tpm` has a known issue when using custom config file with `-f` option.
  17. The solution is to use alternative plugin definition syntax. Here are the steps
  18. to make it work:
  19. 1. remove all `set -g @plugin` lines from tmux config file
  20. 2. in the config file define the plugins in the following way:
  21. # List of plugins
  22. set -g @tpm_plugins ' \
  23. tmux-plugins/tpm \
  24. tmux-plugins/tmux-sensible \
  25. tmux-plugins/tmux-resurrect \
  26. '
  27. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  28. run '~/.tmux/plugins/tpm/tpm'
  29. 3. Reload TMUX environment so TPM is sourced: `$ tmux source /path/to/my_tmux.conf`
  30. The plugins should now be working.
  31. <hr />
  32. > Weird sequence of characters show up when installing or updating plugins
  33. Related: [issue #25](https://github.com/tmux-plugins/tpm/issues/25)
  34. - This could be caused by [tmuxline.vim](https://github.com/edkolev/tmuxline.vim)
  35. plugin. Uninstall it and see if things work.
  36. <hr />
  37. > "failed to connect to server" error when sourcing .tmux.conf
  38. Related: [issue #48](https://github.com/tmux-plugins/tpm/issues/48)
  39. - Make sure `tmux source ~/.tmux.conf` command is ran from inside `tmux`.
  40. <hr />
  41. > tpm not working: '~/.tmux/plugins/tpm/tpm' returned 2 (Windows / Cygwin)
  42. Related: [issue #81](https://github.com/tmux-plugins/tpm/issues/81)
  43. This issue is most likely caused by Windows line endings. For example, if you
  44. have git's `core.autocrlf` option set to `true`, git will automatically convert
  45. all the files to Windows line endings which might cause a problem.
  46. The solution is to convert all line ending to Unix newline characters. This
  47. command handles that for all files under `.tmux/` dir (skips `.git`
  48. subdirectories):
  49. ```bash
  50. find ~/.tmux -type d -name '.git*' -prune -o -type f -print0 | xargs -0 dos2unix
  51. ```
  52. <hr />
  53. > '~/.tmux/plugins/tpm/tpm' returned 127 (on macOS, w/ tmux installed using brew)
  54. Related: [issue #67](https://github.com/tmux-plugins/tpm/issues/67)
  55. This problem is because tmux's `run-shell` command runs a shell which doesn't read from user configs, thus tmux installed in `/usr/local/bin` will not be found.
  56. The solution is to insert the following line:
  57. ```
  58. set-environment -g PATH "/usr/local/bin:/bin:/usr/bin"
  59. ```
  60. before any `run-shell`/`run` commands in `~/.tmux.conf`.