Skip to content

Commit

Permalink
Source bash completion files for all other gz libraries (#104)
Browse files Browse the repository at this point in the history
Also Install to bash-completion

Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey authored Aug 11, 2022
1 parent 4e79cc3 commit 62c11f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ configure_file(
"${CMAKE_CURRENT_BINARY_DIR}/ign${PROJECT_MAJOR_VERSION}.bash_completion.sh" @ONLY)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/ign${PROJECT_MAJOR_VERSION}.bash_completion.sh
RENAME ign
DESTINATION
${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}/gz/gz${PROJECT_MAJOR_VERSION}.completion.d)
${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}/bash-completion/completions)
3 changes: 3 additions & 0 deletions etc/ign.bash_completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,7 @@ function _ign

COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
}

source @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DATAROOTDIR@/gz/gz@[email protected]

complete -F "_ign" "ign"

0 comments on commit 62c11f4

Please sign in to comment.