tmux-plugins / tmux-resurrect

Persists tmux environment across system restarts.
MIT License
11.4k stars 424 forks source link

TPM does not seem to install this plugin #203

Open bambery opened 7 years ago

bambery commented 7 years ago

I am on new macbook latest sierra, running iterm 2 with bash. My tmux installation is only weeks old, and I have only this, tpm, tmux-sensible, and tmux-continuum installed as plugins. Pressing <command> + ctrl-I does source the config, but it does not install tmux-resurrect. It is not listed in the plugins folder. Continuum and sensible were installed, but not this. Eventually I gave up and ran the manual instructions given in the readme for resurrect, and that also did not work, as I got a 127 error code.

The way I got tmux-resurrect to work was by running ~/.tmux/plugins/tmux-resurrect/resurrect.tmux which I found in this old issue from 2014: https://github.com/tmux-plugins/tmux-resurrect/issues/41.

bruno- commented 7 years ago

Hi,

TPM doesn't have dependencies system. tmux-resurrect needs to be explicitly added to your plugins list in order to be installed.

On 2017-08-02, bambery wrote:

I am on new macbook latest sierra, running iterm 2 with bash. My tmux installation is only weeks old, and I have only this, tpm, tmux-sensible, and tmux-continuum installed as plugins. Pressing + ctrl-I does source the config, but it does not install tmux-resurrect. It is not listed in the plugins folder. Continuum and sensible were installed, but not this. Eventually I gave up and ran the manual instructions given in the readme for resurrect, and that also did not work, as I got a 127 error code.

The way I got tmux-resurrect to work was by running ~/.tmux/plugins/tmux-resurrect/resurrect.tmux which I found in this old issue from 2014: https://github.com/tmux-plugins/tmux-resurrect/issues/41.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/tmux-plugins/tmux-resurrect/issues/203

bambery commented 7 years ago

Hi, sorry, I was not clear! I followed the directions in the readme for installing via TPM, which were 2 steps: add this to tmux.conf:set -g @plugin 'tmux-plugins/tmux-resurrect' and then run prefix + control-I. Is this what you meant, or are there other steps I missed?

Jskobos commented 7 years ago

I am also having this problem on MacOS. Followed the installation steps as bembery has described. I was only able to get it to work by using her workaround (cloning the repo followed by ~/.tmux/plugins/tmux-resurrect/resurrect.tmux from within tmux).

ghost commented 6 years ago

Hi, I have just ran into this error. I have tpm, tmux-sensible and tmux-resurrect in my tmux.conf file.

Here is my tmux.conf file:

set -g default-terminal "xterm-256color"

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'

run '~/.tmux/plugins/tpm/tpm'
ghost commented 6 years ago

I found a fix for my issue. I have recently migrated Linux distributions and forgot to make a symbolic link between my tmux.conf (which is in a non-default directory) and ~/.tmux.conf.

To fix my issue all I had to do is: ln -s /path/to/my/tmux.conf ~/.tmux.conf

jtpereyda commented 6 years ago

In my case the .tmux directory was owned by root. sudo chown -R myname:myname .tmux did the trick.

cornerkitten commented 5 years ago

For anyone running across this issue via Google and also using the Oh My Tmux! config, you might run into similar issues, as described by op.

For me, the following comment resolved my TPM install issues while using the Oh My Tmux base config: https://github.com/gpakosz/.tmux/issues/228#issuecomment-472205869

madhukar93 commented 4 years ago

For anyone running across this issue via Google and also using the Oh My Tmux! config, you might run into similar issues, as described by op.

For me, the following comment resolved my TPM install issues while using the Oh My Tmux base config: gpakosz/.tmux#228 (comment)

any idea why this works?