Don't update plugins twice
This commit is contained in:
parent
b4c89884e0
commit
3c4a8c9eee
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue