1
0
mirror of https://github.com/tmux-plugins/tpm.git synced 2024-06-23 07:16:42 +02:00

match 'set-option -g @plugin' and 'set -g @plugin'

This commit is contained in:
Treri 2015-09-08 16:38:15 +08:00
parent 5de37f98bb
commit a6e34acf0e

View File

@ -43,7 +43,7 @@ tpm_plugins_list_helper() {
# 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" |
awk '/^ *set +-g +@plugin/ { gsub(/'\''/,""); gsub(/'\"'/,""); print $4 }' awk '/^ *set(-option)? +-g +@plugin/ { gsub(/'\''/,""); gsub(/'\"'/,""); print $4 }'
} }
# Allowed plugin name formats: # Allowed plugin name formats: