mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-12-04 15:08:43 +08:00
fix presets
This commit is contained in:
1 parent
3fb84ee9cc
commit
b34650ea31
1 file changed
+1
-1
+1
-1
@@ -147,7 +147,7 @@ _cmake_presets() {
|
||||
|
||||
# TODO: Problems with quotes need eval
|
||||
# would need a way to exec the array
|
||||
local list_presets; list_presets=(${(f)"$(eval "${invoke[@]} 2> /dev/null" | sed -n 's,^[[:space:]]*"\([^"]*\)"[[:space:]]*-[[:space:]]*\(.*\),\1:\2,p' )"})
|
||||
local list_presets; list_presets=(${(f)"$(eval "${invoke[@]} 2> /dev/null" | grep -Po '(?<=\").*(?=")' )"})
|
||||
|
||||
_describe 'presets' list_presets
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user