Add flexible tmux configuration load function. · tmux-plugins/tpm@2c4a2df · GitHub
Skip to content

Commit 2c4a2df

Browse files
committed
Add flexible tmux configuration load function.
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 as normally. 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`.
1 parent 95f7833 commit 2c4a2df

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

‎scripts/helpers/plugin_functions.sh‎

Lines changed: 23 additions & 1 deletion

0 commit comments

Comments
 (0)