tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.9k stars 417 forks source link

Local plugins? #220

Closed heraldofsolace closed 2 years ago

heraldofsolace commented 2 years ago

Is it possible to load a plugin from a local directory? Something like set -g @plugin '~/foo/bar/. I'm developing a plugin and I'd like to load it from a local directory and not having to push to GitHub every time.

bruno- commented 2 years ago

Yea, just run your plugin's *.tmux script with run 'path/to/plugin/start_script.tmux'

heraldofsolace commented 2 years ago

I tried that, but I'm using Oh my Tmux and it does some magic with the way scripts are run and so running script with run gets overwritten. It seems like plugins loaded with tpm (using set -g @plugin) works fine. That's why I was wondering if it's possible.

qmacro commented 9 months ago

This comment may be very late but just in case it helps (and others arriving at this issue in search of the same thing) - you can use a local bare git repo for this, for example. I had the same question, and wrote up some notes on the solution I found that worked for me: https://qmacro.org/blog/posts/2023/11/13/tmux-plugin-development-with-a-local-repo/