mirror of
https://github.com/KevinMidboe/dotfiles.git
synced 2025-10-29 01:20:20 +00:00
26 lines
576 B
Bash
26 lines
576 B
Bash
#!/bin/sh
|
|
export REPO="https://github.com/kevinmidboe/dotfiles"
|
|
export DOT_CONFIG_FOLDER="$HOME/.config"
|
|
|
|
# clone dotfiles repo
|
|
echo "Cloning github repo"
|
|
git clone --depth=1 $REPO $DOT_CONFIG_FOLDER
|
|
|
|
cd $DOT_CONFIG_FOLDER
|
|
|
|
# create symlinks
|
|
echo "Creating symlinks"
|
|
ln -s $HOME/.config/profile $HOME/.profile
|
|
ln -s $HOME/.config/wakatime.cfg $HOME/.wakatime.cfg
|
|
|
|
# copy script files
|
|
echo "Copying scripts to /usr/local/bin"
|
|
cp scripts/* /usr/local/bin/
|
|
|
|
# run install scripts
|
|
for script in install/*.sh; do
|
|
echo "Running install script $script..."
|
|
sh "$script"
|
|
done
|
|
|