Add pihole-FTL bash completion

Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
Christian König
2025-08-06 12:51:08 +02:00
parent 75286a1626
commit 340ffbe5e8
3 changed files with 55 additions and 0 deletions

View File

@@ -1138,6 +1138,7 @@ installScripts() {
install -o "${USER}" -Dm755 -t "${PI_HOLE_INSTALL_DIR}" ./advanced/Scripts/COL_TABLE
install -o "${USER}" -Dm755 -t "${PI_HOLE_BIN_DIR}" pihole
install -Dm644 ./advanced/bash-completion/pihole /etc/bash_completion.d/pihole
install -Dm644 ./advanced/bash-completion/pihole-ftl.bash /etc/bash_completion.d/pihole-FTL
printf "%b %b %s\\n" "${OVER}" "${TICK}" "${str}"
else

View File

@@ -89,6 +89,7 @@ removePiholeFiles() {
${SUDO} rm -rf /opt/pihole/ &> /dev/null
${SUDO} rm -f /usr/local/bin/pihole &> /dev/null
${SUDO} rm -f /etc/bash_completion.d/pihole &> /dev/null
${SUDO} rm -f /etc/bash_completion.d/pihole-FTL &> /dev/null
${SUDO} rm -f /etc/sudoers.d/pihole &> /dev/null
echo -e " ${TICK} Removed config files"