dotfiles_command.bashrc: uses the environment now and clears its vars

This commit is contained in:
Gregor Bückendorf 2018-12-13 17:34:20 +01:00
parent 46f401d5b4
commit b617d7a72b

View file

@ -1,8 +1,9 @@
# Alias dotfiles to the custom git command required for the functioning of the # Alias dotfiles to the custom git command required for the functioning of the
# dotfiles utility # dotfiles utility
dotgit_config="$HOME/.dotfiles/dotgit_config" alias dotfiles="git \
dotgit_dir="$HOME/.dotgit/" -c include.path=$DOTFILES_DIR/dotgit_config \
alias dotfiles="git -c include.path=$dotgit_config --git-dir=$dotgit_dir --work-tree=$HOME" --git-dir=$DOTFILES_GITDIR \
--work-tree=$HOME"
# Shorten the dotfiles command to dot if possible # Shorten the dotfiles command to dot if possible
if ! command -v dot >/dev/null 2>&1 if ! command -v dot >/dev/null 2>&1
@ -30,3 +31,6 @@ do
break break
fi fi
done done
unset -v dot_aliased possible_locations completion_file