replace init.sh with a makefile. todo: clean
This commit is contained in:
parent
1f4270151c
commit
c44d4a20ec
|
@ -0,0 +1,10 @@
|
||||||
|
FILES:=.vimrc .gitconfig .bash_profile
|
||||||
|
|
||||||
|
all:$(FILES)
|
||||||
|
source ${HOME}/.bash_profile
|
||||||
|
|
||||||
|
$(FILES):
|
||||||
|
cp -rf dotfiles/$@ ${HOME}/$@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@echo "clean: idk yet.\nTODO: default config swap\n- .git-config.sample.\n- .debian_bash_profile.sample\n- .vimrc.sample?"
|
12
init.sh
12
init.sh
|
@ -1,12 +0,0 @@
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
||||||
|
|
||||||
cp -rf $DIR/dotfiles/.vimrc $HOME/.vimrc
|
|
||||||
echo ".vimrc copied"
|
|
||||||
|
|
||||||
cp $DIR/dotfiles/.gitconfig $HOME/.gitconfig
|
|
||||||
echo ".gitconfig copied"
|
|
||||||
|
|
||||||
cp $DIR/dotfiles/.bash_profile $HOME/.bash_profile
|
|
||||||
echo ".bash_profile copied"
|
|
||||||
|
|
||||||
source $HOME/.bash_profile
|
|
Loading…
Reference in New Issue