We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b36202a + 788f5d6 commit 60a36d6Copy full SHA for 60a36d6
scripts/helpers/plugin_functions.sh
@@ -46,7 +46,7 @@ _tmux_conf_contents() {
46
# return files sourced from tmux config files
47
_sourced_files() {
48
_tmux_conf_contents |
49
- awk '/^[ \t]*source(-file)? +/ { gsub(/'\''/,""); gsub(/'\"'/,""); print $2 }'
+ sed -E -n -e "s/^[[:space:]]*source(-file)?[[:space:]]+(-q+[[:space:]]+)?['\"]?([^'\"]+)['\"]?/\3/p"
50
}
51
52
# Want to be able to abort in certain cases
0 commit comments