Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
7a0dac80
Commit
7a0dac80
authored
Jan 23, 2018
by
Jeremy Worboys
Committed by
Robby Russell
Jan 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ExpressionEngine CMS autocompletion (#6556)
parent
215e43aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
eecms.plugin.zsh
plugins/eecms/eecms.plugin.zsh
+20
-0
No files found.
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`'
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