.profile: Add autocompletion for dot

bout gd time
This commit is contained in:
Salt 2020-07-18 00:24:31 -05:00
parent 6c2c3ac52b
commit 13bfb52d19

View File

@ -262,6 +262,10 @@ fi
if [ -d "$HOME/.dotfiles" ]; then if [ -d "$HOME/.dotfiles" ]; then
dotcmd='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' dotcmd='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias dot="$dotcmd" 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="\ alias dotupdate="\
printf 'Pulling...\n' printf 'Pulling...\n'
$dotcmd pull $dotcmd pull