rm deploy-dotfiles.sh

This commit is contained in:
surtur 2022-04-19 17:23:45 +02:00
parent d8d86a2131
commit 1db1f1178d
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -1,29 +0,0 @@
#!/bin/bash
# deploy-dotfiles is a simple config deployment "script"
# version 0.1
# Author: a_mirre@utb.cz
# License: GNU GPL v3 (https://www.gnu.org/licenses/gpl.html)
# old dotfiles should be backed up
files={vimrc:gvimrc:zsh/zshrc}
bindir="~/utils/bin"
if [ ! -d $bindir ]; then
echo "[*] creating bindir"
mkdir -pv $bindir
else
echo "[i] bindir already present"
fi
echo "[*] symlinking dotfiles"
while true; do
if [ -f $f ]; then
echo "[*] backing up $f to $f.OLDER"
mv -v $f $f.OLDER
fi
echo "[*] creating a link for $f at $syspath"
ln -v -s $f $syspath
done