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 -> Package-Plugin
|
||||
# - Package-Plugin -> package-plugin
|
||||
basename $files \
|
||||
| sed -E -e 's/^_?([^_]+)_?.groovy/\1/'\
|
||||
-e 's/([a-z])([A-Z])/\1-\2/g' \
|
||||
| tr "[:upper:]" "[:lower:]" \
|
||||
| sort \
|
||||
| uniq
|
||||
for i in $files;
|
||||
do
|
||||
echo `basename $i` \
|
||||
| sed -E -e 's/^_?([^_]+)_?.groovy/\1/'\
|
||||
-e 's/([a-z])([A-Z])/\1-\2/g' \
|
||||
| tr "[:upper:]" "[:lower:]" \
|
||||
| sort \
|
||||
| uniq
|
||||
done
|
||||
}
|
||||
|
||||
_grails() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue