mirror of
https://github.com/tmux-plugins/tpm.git
synced 2025-11-02 06:56:02 +00:00
Merge pull request #171 from gpakosz/support-source-q
Add support for 'source-file -q'
This commit is contained in:
@@ -46,7 +46,7 @@ _tmux_conf_contents() {
|
||||
# return files sourced from tmux config files
|
||||
_sourced_files() {
|
||||
_tmux_conf_contents |
|
||||
awk '/^[ \t]*source(-file)? +/ { gsub(/'\''/,""); gsub(/'\"'/,""); print $2 }'
|
||||
sed -E -n -e "s/^[[:space:]]*source(-file)?[[:space:]]+(-q+[[:space:]]+)?['\"]?([^'\"]+)['\"]?/\3/p"
|
||||
}
|
||||
|
||||
# Want to be able to abort in certain cases
|
||||
|
||||
Reference in New Issue
Block a user