diff --git a/.profile b/.profile index 3e4b7281..327b353e 100755 --- a/.profile +++ b/.profile @@ -262,6 +262,10 @@ fi if [ -d "$HOME/.dotfiles" ]; then dotcmd='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' alias dot="$dotcmd" + if [ -f "/usr/share/bash-completion/completions/git" ] && [ "$_baseshell" == "bash" ]; then + . "/usr/share/bash-completion/completions/git" + __git_complete dot _git + fi alias dotupdate="\ printf 'Pulling...\n' $dotcmd pull