Auto Update

This commit is contained in:
matt1432 2023-02-04 01:09:29 -05:00
parent 8df363428d
commit 14c081c74c
3 changed files with 7 additions and 7 deletions

View file

@ -37,9 +37,9 @@ if [ -d "$HOME/bin" ] ; then
fi
# source misc user scripts
if [ -d ~/git/dotfiles/files ] ; then
. ~/git/dotfiles/files/*
fi
#if [ -d ~/git/dotfiles/files ] ; then
# . ~/git/dotfiles/files/.*
#fi
# source headscale autocompletion script
if [ -f ~/.autoheadscale ] ; then

View file

@ -2,9 +2,9 @@ TODELETE="$(command ls --almost-all ~/git/dotfiles/files)"
if [ -d ~/git/dotfiles ] ; then
bash ~/git/dotfiles/pull.sh
(cd ~ ; rm $TODELETE)
(cd ~ ; rm $(command ls --almost-all ~/git/dotfiles/files))
(cd ~/git/dotfiles
ln ./files/* ../../)
ln ./files/.* ../../)
fi
. ~/.bashrc

View file

@ -6,8 +6,8 @@ TODELETE="$(command ls --almost-all files) .PS1"
(cd ../.. ; rm $TODELETE)
(cd /root ; rm $TODELETE)
cp ./files/* /root
ln ./files/* ../../
cp -r ./files/. /root
ln ./files/.* ../../
# dotenv
if [ ! -f ../../.env ] ; then