We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8150813 + 5cbd557 commit f7535e5Copy full SHA for f7535e5
hooks/bash-completion
@@ -5,8 +5,9 @@ function _composercomplete {
5
local CMDLINE_CONTENTS="$COMP_LINE"
6
local CMDLINE_CURSOR_INDEX="$COMP_POINT"
7
local CMDLINE_WORDBREAKS="$COMP_WORDBREAKS";
8
+ local COMPOSER_CWD="$PWD"
9
- export CMDLINE_CONTENTS CMDLINE_CURSOR_INDEX CMDLINE_WORDBREAKS
10
+ export CMDLINE_CONTENTS CMDLINE_CURSOR_INDEX CMDLINE_WORDBREAKS COMPOSER_CWD
11
12
# Query and cache where the global composer.json lives
13
if [ -z "$_composer_config_dir" ]; then
hooks/zsh-completion
@@ -4,6 +4,7 @@
4
function _composer {
local -x CMDLINE_CONTENTS="$words"
local -x CMDLINE_CURSOR_INDEX
+ local -x COMPOSER_CWD="$PWD"
(( CMDLINE_CURSOR_INDEX = ${#${(j. .)words[1,CURRENT]}} ))
0 commit comments