Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'~/.tmux/plugins/tpm/tpm' returned 2 #81

Closed
franjozen opened this issue Aug 5, 2016 · 3 comments
Closed

'~/.tmux/plugins/tpm/tpm' returned 2 #81

franjozen opened this issue Aug 5, 2016 · 3 comments

Comments

@franjozen
Copy link

This was an issue for me for some time. This error occurred for me when I sourced .tmux.conf. As an error this probably will not occur for many users as it requires cygwin and jimeh/tmux-themepack (or possibly other plugins) and is possibly even depending on git config --global core.autocrlf. I will report it here though as possible users will start their search here. The problem as you might already understand is line endings. I think that this doesn't deserve a code change as much as a mention in https://github.com/tmux-plugins/tpm/blob/master/docs/tpm_not_working.md.

The solution is to run this command:
find ~/.tmux -type d -name '.git*' -prune -o -type f -print0 | xargs -0 d2u

The command above makes sure that all files have unix line endings, carefully avoiding messing up the .git folders.

Thank you for splendid program!

@bruno- bruno- closed this as completed in b4c8988 Aug 21, 2016
@bruno-
Copy link
Member

bruno- commented Aug 21, 2016

Thanks, added this to the docs.

In the future feel free to open a PR for things like this. If the PR is reasonable (like this one), concise, has the same style as the surrounding text it would get merged faster.

@peter-snr
Copy link

peter-snr commented Aug 7, 2018

Same issue for me.
Ubuntu 16.04
tmux 2.1

I tried the solution but it makes no difference, same error. Shame :(

Can anyone help?

Thanks.

After looking again at the docs I found this error.

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

I changed it to

run '~/.tmux/plugins/tpm'

Now it's fine.

@rohitkrishna094
Copy link

The above solution provided by @peter-snr works.

Just to be sure(in case anyone doesn't know), you have to change that above line in ~/.tmux.conf file. This line is at the end(bottom) of the file.

laudai added a commit to laudai/dotfile that referenced this issue Dec 10, 2020
karbobc pushed a commit to karbobc/tpm that referenced this issue Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants