Setup globals and bash-completion