Add comments.
This commit is contained in:
parent
d7806a6cf6
commit
88bec8badb
@ -5,7 +5,9 @@
|
|||||||
|
|
||||||
if ! command -v git >/dev/null 2>&1; then
|
if ! command -v git >/dev/null 2>&1; then
|
||||||
if [ `uname` == 'Darwin' ]; then
|
if [ `uname` == 'Darwin' ]; then
|
||||||
|
# Install Homebrew
|
||||||
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
|
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
|
||||||
|
# Install Git
|
||||||
brew install git
|
brew install git
|
||||||
else
|
else
|
||||||
echo "Error: Git is required."
|
echo "Error: Git is required."
|
||||||
@ -13,11 +15,13 @@ if ! command -v git >/dev/null 2>&1; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Clone dotfiles and make sylinks
|
||||||
echo "Installing dotfiles..."
|
echo "Installing dotfiles..."
|
||||||
cd ~ && git clone https://github.com/sapegin/dotfiles.git && cd dotfiles && ./sync.py
|
cd ~ && git clone https://github.com/sapegin/dotfiles.git && cd dotfiles && ./sync.py
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
|
|
||||||
if [ `uname` == 'Darwin' ]; then
|
if [ `uname` == 'Darwin' ]; then
|
||||||
|
# Copy path to clipboard
|
||||||
echo -n "~/dotfiles/setup/bootstrap.sh" | pbcopy
|
echo -n "~/dotfiles/setup/bootstrap.sh" | pbcopy
|
||||||
echo
|
echo
|
||||||
echo "Path to bootstrap script is copied to clipboard."
|
echo "Path to bootstrap script is copied to clipboard."
|
||||||
|
Loading…
Reference in New Issue
Block a user