Skip to content

Commit 1575906

Browse files
committed
install: display absolute path of zsh completion script
1 parent 423c49a commit 1575906

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ BINS = $(wildcard bin/git-*)
66
MANS = $(wildcard man/git-*.md)
77
MAN_HTML = $(MANS:.md=.html)
88
MAN_PAGES = $(MANS:.md=.1)
9+
CODE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
910
# Libraries used by all commands
1011
LIB = "helper/reset-env" "helper/git-extra-utility"
1112

@@ -54,7 +55,8 @@ install:
5455
@mkdir -p $(DESTDIR)$(SYSCONFDIR)/bash_completion.d
5556
cp -f etc/bash_completion.sh $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/git-extras
5657
@echo ""
57-
@echo "If you are a zsh user, you may want to 'source etc/git-extras-completion.zsh' and put this line into ~/.zshrc to enable zsh completion"
58+
@echo "If you are a zsh user, you may want to 'source $(CODE_DIR)/etc/git-extras-completion.zsh'" \
59+
"and put this line into ~/.zshrc to enable zsh completion"
5860

5961
man/%.html: man/%.md
6062
ronn \

0 commit comments

Comments
 (0)