mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Fix filename to command name conversion in Arch Linux (possibly (every/)elsewhere)
This commit is contained in:
parent
757fa3314d
commit
3494568e3f
1 changed files with 9 additions and 6 deletions
|
|
@ -29,12 +29,15 @@ _enumerateGrailsScripts() {
|
||||||
# - PackagePlugin_.groovy -> PackagePlugin
|
# - PackagePlugin_.groovy -> PackagePlugin
|
||||||
# - PackagePlugin -> Package-Plugin
|
# - PackagePlugin -> Package-Plugin
|
||||||
# - Package-Plugin -> package-plugin
|
# - Package-Plugin -> package-plugin
|
||||||
basename $files \
|
for i in $files;
|
||||||
| sed -E -e 's/^_?([^_]+)_?.groovy/\1/'\
|
do
|
||||||
-e 's/([a-z])([A-Z])/\1-\2/g' \
|
echo `basename $i` \
|
||||||
| tr "[:upper:]" "[:lower:]" \
|
| sed -E -e 's/^_?([^_]+)_?.groovy/\1/'\
|
||||||
| sort \
|
-e 's/([a-z])([A-Z])/\1-\2/g' \
|
||||||
| uniq
|
| tr "[:upper:]" "[:lower:]" \
|
||||||
|
| sort \
|
||||||
|
| uniq
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
_grails() {
|
_grails() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue