Last active
October 20, 2022 17:30
-
-
Save weavenet/32b0938e5aea6f3dd18fb98e2bfbdd42 to your computer and use it in GitHub Desktop.
Weavnet Dotfiles Auto Install Tar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
VERSION=0.0.2 | |
DIRECTORY=$HOME/dotfiles_weavenet | |
echo "Making dotfile directory to '$DIRECTORY'" | |
mkdir -p $DIRECTORY | |
echo "Installing bashdot as '$DIRECTORY/bashdot'." | |
url=https://raw.githubusercontent.com/bashdot/bashdot/master/bashdot | |
curl -s $url > $DIRECTORY/bashdot | |
chmod 755 $DIRECTORY/bashdot | |
echo "Downloading public dotfiles into '$DIRECTORY'." | |
curl -s --output - https://codeload.github.com/weavenet/dotfiles/tar.gz/refs/tags/$VERSION| (cd $DIRECTORY && tar xzf -) | |
echo "Installing default profile." | |
cd $DIRECTORY | |
mv dotfiles-$VERSION dotfiles | |
env WORK_DIR=$DIRECTORY bash bashdot install dotfiles | |
echo "Dotfiles installed, run '. ~/.bashrc' to source dotfiles." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment