Auto Update
This commit is contained in:
parent
8df363428d
commit
14c081c74c
3 changed files with 7 additions and 7 deletions
|
@ -37,9 +37,9 @@ if [ -d "$HOME/bin" ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# source misc user scripts
|
# source misc user scripts
|
||||||
if [ -d ~/git/dotfiles/files ] ; then
|
#if [ -d ~/git/dotfiles/files ] ; then
|
||||||
. ~/git/dotfiles/files/*
|
# . ~/git/dotfiles/files/.*
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# source headscale autocompletion script
|
# source headscale autocompletion script
|
||||||
if [ -f ~/.autoheadscale ] ; then
|
if [ -f ~/.autoheadscale ] ; then
|
||||||
|
|
|
@ -2,9 +2,9 @@ TODELETE="$(command ls --almost-all ~/git/dotfiles/files)"
|
||||||
|
|
||||||
if [ -d ~/git/dotfiles ] ; then
|
if [ -d ~/git/dotfiles ] ; then
|
||||||
bash ~/git/dotfiles/pull.sh
|
bash ~/git/dotfiles/pull.sh
|
||||||
(cd ~ ; rm $TODELETE)
|
(cd ~ ; rm $(command ls --almost-all ~/git/dotfiles/files))
|
||||||
(cd ~/git/dotfiles
|
(cd ~/git/dotfiles
|
||||||
ln ./files/* ../../)
|
ln ./files/.* ../../)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
. ~/.bashrc
|
. ~/.bashrc
|
||||||
|
|
4
setup.sh
4
setup.sh
|
@ -6,8 +6,8 @@ TODELETE="$(command ls --almost-all files) .PS1"
|
||||||
(cd ../.. ; rm $TODELETE)
|
(cd ../.. ; rm $TODELETE)
|
||||||
(cd /root ; rm $TODELETE)
|
(cd /root ; rm $TODELETE)
|
||||||
|
|
||||||
cp ./files/* /root
|
cp -r ./files/. /root
|
||||||
ln ./files/* ../../
|
ln ./files/.* ../../
|
||||||
|
|
||||||
# dotenv
|
# dotenv
|
||||||
if [ ! -f ../../.env ] ; then
|
if [ ! -f ../../.env ] ; then
|
||||||
|
|
Loading…
Reference in a new issue