mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 20:54:51 +00:00
24 lines
453 B
Bash
Executable File
24 lines
453 B
Bash
Executable File
#!/bin/sh
|
|
# author: deadc0de6 (https://github.com/deadc0de6)
|
|
# Copyright (c) 2017, deadc0de6
|
|
|
|
fold="dotfiles"
|
|
conf="config.yaml"
|
|
|
|
# copy dotdrop entry point
|
|
cat dotdrop/dotdrop.sh | sed 's#${cur}/dotdrop/dotdrop.py#${cur}/dotdrop/dotdrop/dotdrop.py#g' > dotdrop.sh
|
|
chmod +x dotdrop.sh
|
|
mkdir -p $fold
|
|
|
|
if [ ! -e ${conf} ]; then
|
|
# init config file
|
|
cat << EOF > ${conf}
|
|
config:
|
|
backup: true
|
|
create: true
|
|
dotpath: $fold
|
|
dotfiles:
|
|
profiles:
|
|
EOF
|
|
fi
|