Merge pull request #547 from tony/improve-tmuxp-load

improve tmuxp load completions
This commit is contained in:
nicoulaj 2018-11-05 19:55:01 +01:00 committed by GitHub
commit 5fdcec1bef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ __tmuxp_load() {
local s
_alternative \
'sessions-user:user session:compadd -F line - ~/.tmuxp/*.(json|yml|yaml)(:r:t)' \
'sessions-other:session in current directory:_path_files -g "**/*.(json|yaml|yml)(-.)"'
'sessions-other:session in current directory:_path_files -/ -g "**/.tmuxp.(yml|yaml|json)"' \
'sessions-other:session in current directory:_path_files -g "*.(yml|yaml|json)"'
;;
esac
}