Skip to content

Commit b4c8988

Browse files
author
Bruno Sutic
committed
Document windows/cygwin issue with line endings
Closes tmux-plugins#81
1 parent 9bfbac2 commit b4c8988

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/tpm_not_working.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,21 @@ Related: [issue #25](https://github.com/tmux-plugins/tpm/issues/25)
6060
Related: [issue #48](https://github.com/tmux-plugins/tpm/issues/48)
6161

6262
- 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+
```

0 commit comments

Comments
 (0)