Skip to content

Commit a44cab3

Browse files
committed
Fix plugin line start with tab problem
1 parent 51ff07a commit a44cab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/helpers/plugin_functions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ _tmux_conf_contents() {
2828
# return files sourced from tmux config files
2929
_sourced_files() {
3030
_tmux_conf_contents |
31-
awk '/^ *source(-file)? +/ { gsub(/'\''/,""); gsub(/'\"'/,""); print $2 }'
31+
awk '/^[ \t]*source(-file)? +/ { gsub(/'\''/,""); gsub(/'\"'/,""); print $2 }'
3232
}
3333

3434
# PUBLIC FUNCTIONS BELOW
@@ -43,7 +43,7 @@ tpm_plugins_list_helper() {
4343

4444
# read set -g @plugin "tmux-plugins/tmux-example-plugin" entries
4545
_tmux_conf_contents "full" |
46-
awk '/^ *set(-option)? +-g +@plugin/ { gsub(/'\''/,""); gsub(/'\"'/,""); print $4 }'
46+
awk '/^[ \t]*set(-option)? +-g +@plugin/ { gsub(/'\''/,""); gsub(/'\"'/,""); print $4 }'
4747
}
4848

4949
# Allowed plugin name formats:

0 commit comments

Comments
 (0)