Skip to content

Instantly share code, notes, and snippets.

@weavenet
Last active October 20, 2022 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weavenet/32b0938e5aea6f3dd18fb98e2bfbdd42 to your computer and use it in GitHub Desktop.
Save weavenet/32b0938e5aea6f3dd18fb98e2bfbdd42 to your computer and use it in GitHub Desktop.
Weavnet Dotfiles Auto Install Tar
#!/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