Skip to content

Commit

Permalink
[add] a feature of PR#5 to zsh's completion.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinobuAmasaki committed Jan 22, 2024
1 parent e764dbe commit 3540464
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zsh/_fpm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 3540464

Please # to comment.