Skip to content

Instantly share code, notes, and snippets.

@mattes
Last active March 26, 2017 20:59
Show Gist options
  • Save mattes/10537441 to your computer and use it in GitHub Desktop.
Save mattes/10537441 to your computer and use it in GitHub Desktop.
inject minimal set of dotfiles into running docker container (https://github.com/mattes/dotfiles)
current_dir=$(pwd) && \
cd /tmp && \
( curl -L -s -o dotfiles.tar.gz https://github.com/mattes/dotfiles/archive/master.tar.gz > /dev/null 2>&1 || \
wget -O dotfiles.tar.gz https://github.com/mattes/dotfiles/archive/master.tar.gz > /dev/null 2>&1) && \
tar xfz dotfiles.tar.gz && \
cd ./dotfiles-master && \
source docker_dotfiles.sh > /dev/null && \
cd $current_dir && \
unset current_dir && \
rm -rf /tmp/dotfiles-master && \
rm /tmp/dotfiles.tar.gz
@mattes
Copy link
Author

mattes commented Apr 12, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment