Last active
January 4, 2017 05:51
-
-
Save kevinjqiu/642589895fec175eb74ca71858bfe450 to your computer and use it in GitHub Desktop.
Use env var
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 | |
# 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