Support comma as delimiter for “@tpm_plugins”

Note that empty elements will be ignored.
This commit is contained in:
Franklin Yu 2023-01-03 23:24:42 -08:00
parent fc412cbdf7
commit 1a25c5cb00

View File

@ -70,7 +70,10 @@ tpm_path() {
tpm_plugins_list_helper() { tpm_plugins_list_helper() {
# lists plugins from @tpm_plugins option # lists plugins from @tpm_plugins option
echo "$(tmux start-server\; show-option -gqv "$tpm_plugins_variable_name")" local plugins
plugins="$(tmux start-server\; show-option -gqv "$tpm_plugins_variable_name")"
plugins="${plugins//,/ }"
echo "$plugins"
# read set -g @plugin "tmux-plugins/tmux-example-plugin" entries # read set -g @plugin "tmux-plugins/tmux-example-plugin" entries
_tmux_conf_contents "full" | _tmux_conf_contents "full" |