From 35404642aa5817d33ea731a5994a8a01372458d7 Mon Sep 17 00:00:00 2001 From: Amasaki Shinobu Date: Mon, 22 Jan 2024 15:12:15 +0900 Subject: [PATCH] [add] a feature of PR#5 to zsh's completion. --- zsh/_fpm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zsh/_fpm b/zsh/_fpm index 46fec8b..7f937d9 100644 --- a/zsh/_fpm +++ b/zsh/_fpm @@ -287,6 +287,13 @@ _fpm_run() { case "$state" in (target) + if [[ "${words[CURRENT]}" =~ '^@' ]]; then + local -a user_cmds + user_cmds=($(grep "^@" ./fpm.rsp 2>/dev/null | cut -c 1-)) + _values 'commands' $user_cmds + return + fi + _message "List of application names to execute." local -a targets targets=($(build_dir_analysis))