Skip to content

Commit

Permalink
Add zsh completions
Browse files Browse the repository at this point in the history
Fixes: containers#302

Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Oct 15, 2024
1 parent 9eb13fb commit 2293a75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ PYTHON ?= $(shell command -v python3 python|head -n1)
DESTDIR ?= /
PATH := $(PATH):$(HOME)/.local/bin


default: help

help:
Expand Down Expand Up @@ -43,10 +44,8 @@ install-completions:
register-python-argcomplete --shell bash ramalama > $(DESTDIR)${SHAREDIR}/bash-completion/completions/ramalama
install ${SELINUXOPT} -d -m 755 $(DESTDIR)${SHAREDIR}/fish/vendor_completions.d
register-python-argcomplete --shell fish ramalama > $(DESTDIR)${SHAREDIR}/fish/vendor_completions.d/ramalama.fish

# FIXME: not available on Centos 9 yet.
# install ${SELINUXOPT} -d -m 755 $(DESTDIR)${SHAREDIR}/zsh/site
# register-python-argcomplete --shell zsh ramalama > $(DESTDIR)${SHAREDIR}/zsh/site/_ramalama
install ${SELINUXOPT} -d -m 755 $(DESTDIR)${SHAREDIR}/zsh/site
register-python-argcomplete --shell zsh ramalama > $(DESTDIR)${SHAREDIR}/zsh/site/_ramalama

.PHONY:
install-shortnames:
Expand All @@ -62,9 +61,8 @@ completions:
mkdir -p build/completions/fish/vendor_completions.d
register-python-argcomplete --shell fish ramalama > build/completions/fish/vendor_completions.d/ramalama.fish

# FIXME: not available on Centos 9 yet.
# mkdir -p build/completions/zsh/site
# register-python-argcomplete --shell zsh ramalama > build/completions/zsh/site/_ramalama
mkdir -p build/completions/zsh/site
register-python-argcomplete --shell zsh ramalama > build/completions/zsh/site/_ramalama

.PHONY:
install: docs completions
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ramalama"
version = "0.0.17"
version = "0.0.18"
dependencies = [
"argcomplete",
"tqdm",
Expand Down

0 comments on commit 2293a75

Please sign in to comment.