This commit is contained in:
Graham McGregor 2017-04-23 07:26:30 +00:00 committed by GitHub
commit af6beee48d
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ tpm_plugins_list_helper() {
# read set -g @plugin "tmux-plugins/tmux-example-plugin" entries
_tmux_conf_contents "full" |
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: