Skip to content

Instantly share code, notes, and snippets.

@kevinjqiu
Last active January 4, 2017 05:51
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 kevinjqiu/642589895fec175eb74ca71858bfe450 to your computer and use it in GitHub Desktop.
Save kevinjqiu/642589895fec175eb74ca71858bfe450 to your computer and use it in GitHub Desktop.
Use env var
#! /bin/bash
# curl -sL https://gist.githubusercontent.com/kevinjqiu/642589895fec175eb74ca71858bfe450/raw/b9c405eb9a2829ff47add8ec79e5c459d6b4601e/devstrap.sh | bash
set -ex
CHEZMOI="$HOME/chezmoi"
DOTBASH="$CHEZMOI/dot_bash"
VIMMY="$CHEZMOI/vimmy"
git clone --depth=1 https://github.com/kevinjqiu/chezmoi.git $CHEZMOI
git clone --depth=1 https://github.com/kevinjqiu/dot_bash.git $DOTBASH
git clone --depth=1 https://github.com/kevinjqiu/vimmy.git $VIMMY
# Install vimmy
cd $VIMMY && make bootstrap
cd $VIMMY && make link
# Install dot_bash
cd $DOTBASH && ./install.sh
# Link
TARGETS="tmux git ssh inputrc"
for target in $TARGETS; do
cd $CHEZMOI && make $target
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment