Files
dotfiles/install.sh
2023-05-12 12:14:35 +05:30

12 lines
387 B
Bash
Executable File

#!/bin/sh
# ensure_installed:
DOTFILES_REPO="https://github.com/uttarayan21/dotfiles"
INSTALLED="$HOME/.local/share/dotfiles"
git clone --recursive "$DOTFILES_REPO" "$INSTALLED"
for file in $(ls -1 $INSTALLED/config); do
echo "$INSTALLED/config/$(basename file)" $HOME/config/$(basename $file)
ln -s "$INSTALLED/config/$(basename $file)" "$HOME/.config/$(basename $file)"
done