Skip to content

Commit 38c55c5

Browse files
author
gau1991
committed
Updated Autocompltion for ee site edit --pagespeed
1 parent e40d1c1 commit 38c55c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config/bash_completion.d/ee_auto.rc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ _ee_complete()
9898
COMPREPLY=( $(compgen \
9999
-W "$(find /etc/nginx/sites-available/ -type f -printf "%P " 2> /dev/null) --nginx --php --fpm --mysql --wp --access" \
100100
-- $cur) )
101+
elif [ ${COMP_WORDS[1]} == "edit" ]; then
102+
COMPREPLY=( $(compgen \
103+
-W "$(find /etc/nginx/sites-available/ -type f -printf "%P " 2> /dev/null) --pagespeed" \
104+
-- $cur) )
101105
else
102106
COMPREPLY=( $(compgen \
103107
-W "$(find /etc/nginx/sites-available/ -type f -printf "%P " 2> /dev/null)" \
@@ -119,7 +123,7 @@ _ee_complete()
119123

120124
"reset")
121125
COMPREPLY=( $(compgen \
122-
-W "$(find /etc/nginx/sites-available/ -type f -printf "%P " 2> /dev/null) --nginx --php --fpm --mysql --wp --access --slow-log--db" \
126+
-W "$(find /etc/nginx/sites-available/ -type f -printf "%P " 2> /dev/null) --nginx --php --fpm --mysql --wp --access --slow-log-db" \
123127
-- $cur) )
124128
;;
125129

0 commit comments

Comments
 (0)