1
0
Fork 0
mirror of synced 2024-12-13 19:05:45 -05:00

Don't update plugins twice

This commit is contained in:
Graham McGregor 2016-11-12 15:07:01 -05:00
parent b4c89884e0
commit 3c4a8c9eee

View file

@ -44,6 +44,9 @@ 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 '/^[ \t]*set(-option)? +-g +@plugin/ { gsub(/'\''/,""); gsub(/'\"'/,""); print $4 }' awk '/^[ \t]*set(-option)? +-g +@plugin/ { gsub(/'\''/,""); gsub(/'\"'/,""); print $4 }'
# split to separate lines, sort, choose unique ones, put back to single line
sed 's/ /\n/g' | sort | uniq | tr "\n" " "
} }
# Allowed plugin name formats: # Allowed plugin name formats: