# check if we use bash if [ $SHELL = "/bin/bash" ]; then if shopt -q login_shell && [ -f /etc/bash_completion ]; then # interactive shell, so source completion code . /etc/bash_completion fi fi