Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
7a0dac80
Commit
7a0dac80
authored
7 years ago
by
Jeremy Worboys
Committed by
Robby Russell
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Add ExpressionEngine CMS autocompletion (#6556)
parent
215e43aa
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/eecms/eecms.plugin.zsh
+20
-0
plugins/eecms/eecms.plugin.zsh
with
20 additions
and
0 deletions
+20
-0
plugins/eecms/eecms.plugin.zsh
0 → 100644
View file @
7a0dac80
# ExpressionEngine CMS basic command completion
_eecms_console
()
{
echo
"php
$(
find
.
-maxdepth
3
-mindepth
1
-name
'eecms'
-type
f |
head
-n
1
)
"
}
_eecms_get_command_list
()
{
`
_eecms_console
`
|
sed
"/Available commands/,/^/d"
|
sed
"s/[[:space:]].*//g"
}
_eecms
()
{
compadd
`
_eecms_get_command_list
`
}
compdef _eecms
'`_eecms_console`'
compdef _eecms
'system/ee/eecms'
compdef _eecms eecms
#Alias
alias
eecms
=
'`_eecms_console`'
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help