Giter Club home page Giter Club logo

Comments (8)

bruno- avatar bruno- commented on July 16, 2024 37

You can run this:

~/.tmux/plugins/tpm/scripts/install_plugins.sh

It's the same script the prefix + I key is bound to.

from tpm.

bruno- avatar bruno- commented on July 16, 2024 13

Hm, I've never though about that use case, but yes it should be possible.

Here are the steps I just ran from plain terminal (no tmux) and it all went well.

# start a server but don't attach to it
tmux start-server
# create a new session but don't attach to it either
tmux new-session -d
# install the plugins
~/.tmux/plugins/tpm/scripts/install_plugins.sh
# killing the server is not required, I guess
tmux kill-server

from tpm.

DavidCain avatar DavidCain commented on July 16, 2024 12

Note that (as of 2015) a new install script was created that supports automatic installation without the fuss of starting up a tmux server. Just call:

$  ~/.tmux/plugins/tpm/bin/install_plugins

From the script:

# Script intended for use via the command line.
#
# `.tmux.conf` needs to be set for TPM. Tmux has to be installed on the system,
# but does not need to be started in order to run this script.

Also, see the docs section on Automatic tpm installation.

from tpm.

 avatar commented on July 16, 2024 5

That helped me too! Thank you!
It is an awesome tool!

from tpm.

gramic avatar gramic commented on July 16, 2024 1

I am using bash/Dockerfile script to create a VM/image for development environment and would like to have everything ready after the script finishes.

However, install_plugins.sh is interactive at the end of the installation and asks "Done, press ENTER to continue.". Any way to make it continue without human intervention?

from tpm.

bruno- avatar bruno- commented on July 16, 2024

Also, I'm curious, why do you need to run it from the command line?

from tpm.

gramic avatar gramic commented on July 16, 2024

Yes, that works. Thank you for the help and the great plugin!

from tpm.

unknownue avatar unknownue commented on July 16, 2024

For docker configuration, I recommend to add sleep 1 before calling install_plugins.sh to wait for tmux server launch, otherwise the following error may trigger

unknown variable: TMUX_PLUGIN_MANAGER_PATH
FATAL: Tmux Plugin Manager not configured in tmux.conf

A complete example in Dockerfile may be

RUN tmux start-server && \
    tmux new-session -d && \
    sleep 1 && \
    ~/.tmux/plugins/tpm/scripts/install_plugins.sh && \
    tmux kill-server

from tpm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.