Add instructions on appending to /etc/shells

Print the command to append safely to /etc/shells with sudo and tee upon
completion of `make install`.
This commit is contained in:
Mahmoud Al-Qudsi 2017-10-25 16:34:17 -05:00
parent e174b8a800
commit 47993b48b6

View File

@ -583,7 +583,8 @@ install: all install-force | check-legacy-binaries
@echo
@if type chsh >/dev/null 2>&1; then \
echo To use fish as your login shell:; \
grep -q -- "$(DESTDIR)$(bindir)/fish" /etc/shells || echo \ \* add the line \'$(DESTDIR)$(bindir)/fish\' to the file \'/etc/shells\'; \
grep -q -- "$(DESTDIR)$(bindir)/fish" /etc/shells || echo -e " * add the line '$(DESTDIR)$(bindir)/fish' to the file '/etc/shells':" \
"\n echo '$(DESTDIR)$(bindir)/fish' | sudo tee -a /etc/shells > /dev/null"; \
echo " * run '$(yellow)chsh -s $(DESTDIR)$(bindir)/fish$(sgr0)'"; \
echo; \
fi;