Skip to content

Commit

Permalink
Reload dotfiles after updating through the bootstrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Sep 19, 2011
1 parent 2db7a49 commit a77f487
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrap.sh
Expand Up @@ -3,4 +3,5 @@ read -p "This may overwrite existing files in your home directory. Are you sure?
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "README.md" -av . ~
fi
fi
source "$HOME/.bash_profile"

This comment has been minimized.

Copy link
@mathiasbynens

mathiasbynens Nov 5, 2012

Author Owner

I was wondering about that. So it needs to be source bootstrap.sh instead of ./bootstrap.sh?

This comment has been minimized.

Copy link
@nvartolomei

nvartolomei Nov 5, 2012

Contributor

Good point! Just understood why it is happening, source doesn't affect current shell, it's in another process.

This comment has been minimized.

Copy link
@nvartolomei

nvartolomei Nov 5, 2012

Contributor

For time being I added a new alias dot-reload and I'm echoing Please run dot-reload, of course it works only if there is already a version of dotfiles in current bash.

script/bootstrap && dot-reload

This comment has been minimized.

Copy link
@mathiasbynens

mathiasbynens Nov 5, 2012

Author Owner

Fixed in 09735f6. Thanks!

0 comments on commit a77f487

Please sign in to comment.