From 13bfb52d1965a55fb4a704b5f381788778afe48a Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 18 Jul 2020 00:24:31 -0500 Subject: [PATCH] .profile: Add autocompletion for dot bout gd time --- .profile | 4 ++++ 1 file changed, 4 insertions(+) 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