# ~/.bash_completion_extra # # Do NOT name .bash_completion, because this an already # reserved filename. Will otherwise run an endless loop # of sourcing .bash_completion. # # Completion setup. # This enables smarter Tab completion for many commands. # ------------------------------------------------------------ # System bash-completion # ------------------------------------------------------------ # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi # ------------------------------------------------------------ # Git completion # ------------------------------------------------------------ # if [ -r "$HOME/.git-completion.bash" ]; then # . "$HOME/.git-completion.bash" # fi # ------------------------------------------------------------ # Docker completion # ------------------------------------------------------------ # Some installations provide docker completion in system directories. # Others do not. # # Add custom Docker completion here only if needed. # Example: # [ -r "$HOME/.docker/completion.bash" ] && . "$HOME/.docker/completion.bash"