File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -60,3 +60,21 @@ Related: [issue #25](https://github.com/tmux-plugins/tpm/issues/25)
60
60
Related: [ issue #48 ] ( https://github.com/tmux-plugins/tpm/issues/48 )
61
61
62
62
- Make sure ` tmux source ~/.tmux.conf ` command is ran from inside ` tmux ` .
63
+
64
+ <hr />
65
+
66
+ > tpm not working: '~ /.tmux/plugins/tpm/tpm' returned 2 (Windows / Cygwin)
67
+
68
+ Related: [ issue #81 ] ( https://github.com/tmux-plugins/tpm/issues/81 )
69
+
70
+ This issue is most likely caused by Windows line endings. For example, if you
71
+ have git's ` core.autocrlf ` option set to ` true ` , git will automatically convert
72
+ all the files to Windows line endings which might cause a problem.
73
+
74
+ The solution is to convert all line ending to Unix newline characters. This
75
+ command handles that for all files under ` .tmux/ ` dir (skips ` .git `
76
+ subdirectories):
77
+
78
+ ``` bash
79
+ find ~ /.tmux -type d -name ' .git*' -prune -o -type f -print0 | xargs -0 dos2unix
80
+ ```
You can’t perform that action at this time.
0 commit comments