dotfiles_command.bashrc: uses the environment now and clears its vars
This commit is contained in:
parent
46f401d5b4
commit
b617d7a72b
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue