gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
21.79k stars 3.36k forks source link

feat(tpm): load plugins even offiine #635

Closed sylph1o closed 1 year ago

sylph1o commented 1 year ago

Currently, if the upstream repository is not reachable (e.g. no internet access), the variable @tpm_plugins is not populated. In that case, tpm loads no plugin.

I do not know whether this is intentional, but this was inconvenient for me whenever I am travelling, or when I start my tmux server before the wifi connection has been established.

The simple patch I propose populates @tpm_plugins regardless of access to the upstream repository.

This was only tested on my personal devices (tmux 3.3a). I have been using it for several days without issue.

gpakosz commented 1 year ago

Hello @sylph1o 👋

Thanks for your contribution 🙏