dotfiles/files/.profile
2023-02-26 01:36:59 -05:00

9 lines
313 B
Bash

if [ -d ~/git/dotfiles ] ; then
TODELETE="$(command ls --almost-all ~/git/dotfiles/files)"
bash ~/git/dotfiles/pull.sh
(cd ~ ; rm $(command ls --almost-all ~/git/dotfiles/files))
(cd ~/git/dotfiles
for f in ./files/.*; do if [[ -f $f ]]; then ln ./$f ../../ ; fi; done)
fi
[[ -f ~/.bashrc ]] && . ~/.bashrc