From 106235197b612e46d7a837d80e9103b64bc5c25a Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Sun, 8 Mar 2026 21:48:55 +0900 Subject: [PATCH] Fix pm2 completion - fix exclusive options - fix wrong function name --- src/_pm2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pm2 b/src/_pm2 index 8a3b0f2..eb4d564 100644 --- a/src/_pm2 +++ b/src/_pm2 @@ -50,13 +50,13 @@ _pm2() { '--max-memory-restart[restart the app if an amount of memory is exceeded (in bytes)]:bytes' \ '--restart-delay[specify a delay between restarts(in milliseconds)]:delay' \ '--exp-backoff-restart-delay[specify a delay between restarts(in milliseconds)]:delay' \ - '(-x --execute-command)'{-e,--execute-command}'[execute a program using fork system]' \ + '(-x --execute-command)'{-x,--execute-command}'[execute a program using fork system]' \ '--max-restarts[only start the script COUNT times]:count' \ '(-u --user)'{-u,--user}'[define user when generating startup script]:username' \ '--uid[run target script with rights]:uid' \ '--gid[run target script with rights]:gui' \ '--namespace[start application within specified namespace]:namespace' \ - '--cwd[run target script from path ]:cwd:_paths -/' \ + '--cwd[run target script from path ]:cwd:_files -/' \ '--hp[define home path when generating startup script]: :_paths -/' \ '--wait-ip[override systemd script to wait for full internet connectivity to launch pm2]' \ '--service-name[define service name when generating startup script]' \