vaeringjar fcae58cf61 Fix the clone URL. | 5 年之前 | |
---|---|---|
.bash_aliases | 5 年之前 | |
.gitignore | 5 年之前 | |
.gitignore_global | 5 年之前 | |
.vimrc | 5 年之前 | |
readme.vxvc.org | 5 年之前 |
Refactoring again the tracking of my dotfiles using StreakyCobra's method.
-------------------------------------------------------------------------------
Copyright 2019 vaeringjar. Work distributed under the CC0.
Run this to setup. Please note, this will clobber any older versions!
git clone --bare https://vaeringjar@notabug.org/vaeringjar/dotfiles.git $HOME/.vxvc
git init --bare $HOME/.vxvc
alias vxvc='/usr/bin/git --git-dir=$HOME/.vxvc/ --work-tree=$HOME'
vxvc config --local status.showUntrackedFiles no
echo "alias vxvc='/usr/bin/git --git-dir=$HOME/.vxvc/ --work-tree=$HOME'" >> $HOME/.bashrc
vxvc reset --hard HEAD
The ~.bashrc~ file should have the following:
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi