Skip to content
This repository has been archived by the owner on May 21, 2023. It is now read-only.

Commit

Permalink
Revert to surrounding only variables - not whole paths - in quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshukraine committed Feb 18, 2017
1 parent ed42476 commit 63d4e98
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ export TIME_ZONE

bootstrap_echo "Step 1: Installing Laptop script..."

cp "$BOOTSTRAP_DIR/install/Brewfile" "$HOME/.Brewfile"
sh "$BOOTSTRAP_DIR/install/laptop" 2>&1 | tee ~/laptop.log
cp "$BOOTSTRAP_DIR"/install/Brewfile "$HOME"/.Brewfile
sh "$BOOTSTRAP_DIR"/install/laptop 2>&1 | tee ~/laptop.log

bootstrap_echo "Done!"

Expand All @@ -116,8 +116,8 @@ bootstrap_echo "Done!"

bootstrap_echo "Step 2: Installing Oh-My-Zsh..."

if [ -d "$HOME/.oh-my-zsh" ]; then
rm -rf "$HOME/.oh-my-zsh"
if [ -d "$HOME"/.oh-my-zsh ]; then
rm -rf "$HOME"/.oh-my-zsh
fi

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
Expand All @@ -132,7 +132,7 @@ bootstrap_echo "Done!"
bootstrap_echo "Step 3: Installing NVM..."

# shellcheck source=/dev/null
source "$BOOTSTRAP_DIR/install/nvm"
source "$BOOTSTRAP_DIR"/install/nvm

bootstrap_echo "Done!"

Expand All @@ -155,7 +155,7 @@ bootstrap_echo "Cloning dotfiles repo to ${DOTFILES_DIR} ..."
git clone "$DOTFILES_REPO_URL" -b "$DOTFILES_BRANCH" "$DOTFILES_DIR"

# shellcheck source=/dev/null
source "$DOTFILES_DIR/install.sh"
source "$DOTFILES_DIR"/install.sh

bootstrap_echo "Done!"

Expand All @@ -166,7 +166,7 @@ bootstrap_echo "Done!"

bootstrap_echo "Step 5: Installing ~/bin utilities..."

cp -R "$BOOTSTRAP_DIR"/bin/* "$HOME/bin/"
cp -R "$BOOTSTRAP_DIR"/bin/* "$HOME"/bin/

bootstrap_echo "Done!"

Expand All @@ -179,11 +179,11 @@ bootstrap_echo "Step 6: Setting up Tmuxinator..."

gem install tmuxinator

if [ ! -d "$HOME/.tmuxinator/" ]; then
mkdir "$HOME/.tmuxinator"
if [ ! -d "$HOME"/.tmuxinator/ ]; then
mkdir "$HOME"/.tmuxinator
fi

cp "$BOOTSTRAP_DIR/lib/default.yml" "$HOME/.tmuxinator/"
cp "$BOOTSTRAP_DIR"/lib/default.yml "$HOME"/.tmuxinator/

bootstrap_echo "Done!"

Expand All @@ -198,7 +198,7 @@ bootstrap_echo "Done!"

bootstrap_echo "Step 7: Installing Ukrainian language utilities..."

cp "$BOOTSTRAP_DIR/lib/{hyph_uk.dic,uk_UA.aff,uk_UA.dic}" "$DICTIONARY_DIR"
cp "$BOOTSTRAP_DIR"/lib/{hyph_uk.dic,uk_UA.aff,uk_UA.dic} "$DICTIONARY_DIR"

bootstrap_echo "Done!"

Expand All @@ -208,14 +208,14 @@ bootstrap_echo "Done!"
################################################################################

bootstrap_echo "Step 8: Installing fixed-width fonts patched for use with Powerline symbols..."
if [ -d "$HOME/src/fonts" ]; then
rm -rf "$HOME/src/fonts"
if [ -d "$HOME"/src/fonts ]; then
rm -rf "$HOME"/src/fonts
fi
git clone https://github.com/powerline/fonts.git "$HOME"/src/fonts
cd "$HOME/src/fonts" || exit
cd "$HOME"/src/fonts || exit
./install.sh
cd "$HOME" || exit
rm -rf "$HOME/src/fonts"
rm -rf "$HOME"/src/fonts

bootstrap_echo "Done!"

Expand All @@ -225,13 +225,13 @@ bootstrap_echo "Done!"
################################################################################

bootstrap_echo "Step 9: Installing Vundle and vim plugins..."
if [ -d "$HOME/.vim/bundle" ]; then
rm -rf "$HOME/.vim/bundle"
if [ -d "$HOME"/.vim/bundle ]; then
rm -rf "$HOME"/.vim/bundle
fi
git clone https://github.com/VundleVim/Vundle.vim.git "$HOME/.vim/bundle/Vundle.vim"
cp -R "$DOTFILES_DIR/vim/colors" "$HOME/.vim" # So Vim won't complain about solarized not being found.
git clone https://github.com/VundleVim/Vundle.vim.git "$HOME"/.vim/bundle/Vundle.vim
cp -R "$DOTFILES_DIR"/vim/colors "$HOME"/.vim # So Vim won't complain about solarized not being found.
vim +PluginInstall +qall
rm -rf "$HOME/.vim/colors"
rm -rf "$HOME"/.vim/colors

bootstrap_echo "Done!"

Expand All @@ -243,10 +243,10 @@ bootstrap_echo "Done!"
bootstrap_echo "Step 10: Setting macOS preferences..."

# shellcheck source=/dev/null
source "$BOOTSTRAP_DIR/install/macos-defaults"
source "$BOOTSTRAP_DIR"/install/macos-defaults

# shellcheck source=/dev/null
source "$BOOTSTRAP_DIR/install/macos-dock"
source "$BOOTSTRAP_DIR"/install/macos-dock

rm -rf "$BOOTSTRAP_DIR"

Expand Down

0 comments on commit 63d4e98

Please sign in to comment.