Skip to content

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

@franjozen

Description

@franjozen

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions