If the `tmux.conf` file is found at a XDG_CONFIG_HOME, use this
directory to store the plugins instead of `$HONE/.tmux/`.
This is only effective if the user has not overridden the value of
`TMUX_PLUGIN_MANAGER_PATH` in their configuration file.
I thought it was a bit peculiar that the README.md suggested using `firstname.lastname@example.org/user/plugin`, but went ahead with that syntax. After seemingly endlessly scratching my head, while trying to figure out what the issue, I reverted to the traditional git URL syntax (SSH syntax) and it worked.
set -g @plugin 'email@example.com:user/plugin_name`
Verified by running `./.tmux/plugins/tpm/bin/install_plugins` manually with a fresh version of TMUX + TPM with both styles.
Add function `_get_user_tmux_conf` to helper script `plugin_functions`.
Function is searching for the users tmux configuration on multiple
places by a prioritized order.
The response is used within`_tmux_conf_contents` to read in the content
Add new environment variable `TMUX_PLUGIN_MANAGER_CONFIG_LOCATION` which
is optional to be defined.
If so it has the highest priority to be loaded, despite if the file
exist or not.
XDG directory support has been added as well by the second priority
location at `$XDG_CONFIG_HOME/tmux/tmux.conf`.
If tmux was not yet configured to initialize the Tmux Plugin Manager,
the variable for the plugin home was not being set. This was resulting
in a `rm -rf /` which is pretty nuclear.