Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating makelos autocompletion script to support both local ./makelo…

…s and global makelos calls
  • Loading branch information...
commit 343db63b01be4bbae38d508a5523c67a2306d30f 1 parent 9a025f5
@bermi bermi authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 README.markdown
View
10 README.markdown
@@ -250,7 +250,7 @@ with the following code
# work-around for the same issue.
colonprefixes=${cur%"${cur##*:}"}
arguments=("${COMP_WORDS[@]:1}")
- COMPREPLY=( $(compgen -W '$(./makelos makelos:autocomplete \
+ COMPREPLY=( $(compgen -W '$($1 makelos:autocomplete \
${arguments[@]})' -- $cur))
local i=${#COMPREPLY[*]}
while [ $((--i)) -ge 0 ]; do
@@ -258,9 +258,13 @@ with the following code
done
return 0
} &&
-
-complete -o bashdefault -o default -F _makelos ./makelos 2>/dev/null \
+
+ complete -o bashdefault -o default -F _makelos ./makelos 2>/dev/null \
|| complete -o default -F _makelos ./makelos
+
+ complete -o bashdefault -o default -F _makelos makelos 2>/dev/null \
+ || complete -o default -F _makelos makelos
+
cd to your app dir in a new prompt and enjoy makelos autocompletion.
Please sign in to comment.
Something went wrong with that request. Please try again.