Skip to content

Commit

Permalink
rename to inspexel
Browse files Browse the repository at this point in the history
  • Loading branch information
SGSSGene committed Sep 6, 2018
1 parent 2530f76 commit dac75f5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.cproject
.project
dynunmixer
inspexel
obj/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TARGET = dynunmixer
TARGET = inspexel

# compiler
CROSS_COMPILE_PREFIX =
Expand Down
5 changes: 3 additions & 2 deletions bash_completion
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
_GetDynUnmixer ()
_GetInspexel ()
{
HINTS=$(${COMP_LINE[0]} ${COMP_WORDS[@]:1} --bash_completion)
COMPREPLY=( $( compgen -W '${HINTS}' -- "${COMP_WORDS[COMP_CWORD]}"))
return 0
}
complete -F _GetDynUnmixer ./dynunmixer
complete -F _GetInspexel ./inspexel
complete -F _GetInspexel inspexel
8 changes: 4 additions & 4 deletions zsh_completion
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
_dynunmixer ()
_inspexel ()
{
globalParams=$(./dynunmixer --bash_completion | tr ' ' '\n')
globalParams=$(inspexel --bash_completion | tr ' ' '\n')
globalCommands=$(echo ${globalParams} | grep "^[^-][^-]")
globalOptions=$(echo ${globalParams} | grep "^--")

localParams=$(./dynunmixer ${words[@]:1} --bash_completion | tr ' ' '\n')
localParams=$(inspexel ${words[@]:1} --bash_completion | tr ' ' '\n')
localCommands=$(echo ${localParams} | grep "^[^-][^-]")
localOptions=$(echo ${localParams} | grep "^--")

Expand All @@ -16,4 +16,4 @@ _dynunmixer ()
compadd -J "G1" -X "%UCommands%u" -- $(echo ${globalCommands} | tr '\n' ' ')
compadd -J "G2" -X "%UGlobal Options%u" -- $(echo ${globalOptions} | tr '\n' ' ')
}
compdef _dynunmixer -P *dynunmixer -N
compdef _inspexel -P inspexel -N

0 comments on commit dac75f5

Please sign in to comment.