#!/usr/bin/env bash set -o errexit main() { if [[ "${1}" == rebase && -x .git/hooks/ctags ]]; then .git/hooks/ctags &>/dev/null & fi } main "${@}"