1891 Add zsh command completion for pvesm
This adds the zsh command completion generation for pvesm. Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
4b5b01192e
commit
87803b3132
8
Makefile
8
Makefile
@ -10,6 +10,7 @@ MANDIR=${PREFIX}/share/man
|
|||||||
DOCDIR=${PREFIX}/share/doc/${PACKAGE}
|
DOCDIR=${PREFIX}/share/doc/${PACKAGE}
|
||||||
MAN1DIR=${MANDIR}/man1/
|
MAN1DIR=${MANDIR}/man1/
|
||||||
BASHCOMPLDIR=${PREFIX}/share/bash-completion/completions/
|
BASHCOMPLDIR=${PREFIX}/share/bash-completion/completions/
|
||||||
|
ZSHCOMPLDIR=${PREFIX}/share/zsh/vendor-completions/
|
||||||
|
|
||||||
export PERLDIR=${PREFIX}/share/perl5
|
export PERLDIR=${PREFIX}/share/perl5
|
||||||
|
|
||||||
@ -34,8 +35,12 @@ pvesm.bash-completion:
|
|||||||
perl -I. -T -e "use PVE::CLI::pvesm; PVE::CLI::pvesm->generate_bash_completions();" >$@.tmp
|
perl -I. -T -e "use PVE::CLI::pvesm; PVE::CLI::pvesm->generate_bash_completions();" >$@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
pvesm.zsh-completion:
|
||||||
|
perl -I. -T -e "use PVE::CLI::pvesm; PVE::CLI::pvesm->generate_zsh_completions();" >$@.tmp
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: PVE pvesm.1 pvesm.bash-completion
|
install: PVE pvesm.1 pvesm.bash-completion pvesm.zsh-completion
|
||||||
install -d ${DESTDIR}${SBINDIR}
|
install -d ${DESTDIR}${SBINDIR}
|
||||||
install -m 0755 pvesm ${DESTDIR}${SBINDIR}
|
install -m 0755 pvesm ${DESTDIR}${SBINDIR}
|
||||||
make -C PVE install
|
make -C PVE install
|
||||||
@ -43,6 +48,7 @@ install: PVE pvesm.1 pvesm.bash-completion
|
|||||||
install -m 0644 pvesm.1 ${DESTDIR}/usr/share/man/man1/
|
install -m 0644 pvesm.1 ${DESTDIR}/usr/share/man/man1/
|
||||||
gzip -9 -n ${DESTDIR}/usr/share/man/man1/pvesm.1
|
gzip -9 -n ${DESTDIR}/usr/share/man/man1/pvesm.1
|
||||||
install -m 0644 -D pvesm.bash-completion ${DESTDIR}${BASHCOMPLDIR}/pvesm
|
install -m 0644 -D pvesm.bash-completion ${DESTDIR}${BASHCOMPLDIR}/pvesm
|
||||||
|
install -m 0644 -D pvesm.zsh-completion ${DESTDIR}${ZSHCOMPLDIR}/_pvesm
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: ${DEB}
|
deb: ${DEB}
|
||||||
|
|||||||
Reference in New Issue
Block a user