mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-07-28 07:31:04 +02:00
fix(pm2): escape + in completion regex for BSD awk (#13900)
This commit is contained in:
+1
-1
@@ -314,7 +314,7 @@ _pm2_subcommands() {
|
||||
(( $+functions[_pm2_id_names] )) ||
|
||||
_pm2_id_names() {
|
||||
local app_list=$(pm2 list -m)
|
||||
local -a names=(${(@f)"$(echo $app_list | awk '/^\+---/{sub("+--- ", ""); print}')"})
|
||||
local -a names=(${(@f)"$(echo $app_list | awk '/^\+---/{sub("\\+--- ", ""); print}')"})
|
||||
local -a ids=(${(@f)"$(echo $app_list | awk '/^pm2 id/{sub("pm2 id :", ""); print}')"})
|
||||
|
||||
if (( ${#ids} > 0 )); then
|
||||
|
||||
Reference in New Issue
Block a user