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
|
||||
|
||||
# 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
|
||||
|
|
|
@ -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
|
||||
|
|
4
setup.sh
4
setup.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue