|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +# ███████╗████████╗██╗ ██╗ ██████╗██╗ ██╗ ██████╗ ███╗ ██╗ █████╗ ███╗ ███╗ █████╗ ██████╗ |
| 4 | +# ██╔════╝╚══██╔══╝██║ ██║██╔════╝██║ ██╔╝ ██╔═══██╗████╗ ██║ ██╔══██╗ ████╗ ████║██╔══██╗██╔════╝ |
| 5 | +# ███████╗ ██║ ██║ ██║██║ █████╔╝ ██║ ██║██╔██╗ ██║ ███████║ ██╔████╔██║███████║██║ |
| 6 | +# ╚════██║ ██║ ██║ ██║██║ ██╔═██╗ ██║ ██║██║╚██╗██║ ██╔══██║ ██║╚██╔╝██║██╔══██║██║ |
| 7 | +# ███████║ ██║ ╚██████╔╝╚██████╗██║ ██╗ ╚██████╔╝██║ ╚████║ ██║ ██║ ██║ ╚═╝ ██║██║ ██║╚██████╗▄█╗ |
| 8 | +# ╚══════╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ |
| 9 | +# |
| 10 | +# ██████╗ ██╗ ███████╗ █████╗ ███████╗███████╗ ███████╗███████╗███╗ ██╗██████╗ ██╗ ██╗███████╗██╗ ██████╗ |
| 11 | +# ██╔══██╗██║ ██╔════╝██╔══██╗██╔════╝██╔════╝ ██╔════╝██╔════╝████╗ ██║██╔══██╗ ██║ ██║██╔════╝██║ ██╔══██╗ |
| 12 | +# ██████╔╝██║ █████╗ ███████║███████╗█████╗ ███████╗█████╗ ██╔██╗ ██║██║ ██║ ███████║█████╗ ██║ ██████╔╝ |
| 13 | +# ██╔═══╝ ██║ ██╔══╝ ██╔══██║╚════██║██╔══╝ ╚════██║██╔══╝ ██║╚██╗██║██║ ██║ ██╔══██║██╔══╝ ██║ ██╔═══╝ |
| 14 | +# ██║ ███████╗███████╗██║ ██║███████║███████╗ ███████║███████╗██║ ╚████║██████╔╝ ██║ ██║███████╗███████╗██║ |
| 15 | +# ╚═╝ ╚══════╝╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚══════╝╚══════╝╚═╝ ╚═══╝╚═════╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ |
| 16 | +# |
| 17 | +# Author: ranguli |
| 18 | +# GitHub: https://www.github.com/ranguli/scripts |
| 19 | +# 2017 |
| 20 | + |
| 21 | +# If you're like me and run Linux on a MacBook, on the odd occasion you'll find yourself back in OS X trying |
| 22 | +# to do something just wishing you were back on the dark side. This script is designed to make your time on |
| 23 | +# a different OS as easy as possible |
| 24 | + |
| 25 | +# Install Homebrew, the missing package manager for OS X |
| 26 | + |
| 27 | +vundle="~/.vim/bundle/Vundle.vim" |
| 28 | + |
| 29 | +declare -a pkg=( |
| 30 | + "stow" |
| 31 | + "git" |
| 32 | + "wget" |
| 33 | + "zsh" |
| 34 | + "zsh-completions" |
| 35 | + "vim" |
| 36 | +) |
| 37 | + |
| 38 | +for i in "${arr[@]}" |
| 39 | +do |
| 40 | + echo "$i" |
| 41 | +done |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | +if ! type "brew" > /dev/null; then |
| 46 | + /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
| 47 | +else |
| 48 | + brew update && brew upgrade |
| 49 | +fi |
| 50 | + |
| 51 | +# Install some basics through brew (most of which are newer versions of their natively packaged macOS counterparts. |
| 52 | +if ! brew ls --versions "${arr[@]}" > /dev/null; then |
| 53 | + brew install "${arr[@]}" |
| 54 | +fi |
| 55 | + |
| 56 | + |
| 57 | +#Install Vundle |
| 58 | +if [ -e $vundle ] |
| 59 | +then |
| 60 | + echo "Vundle already installed." |
| 61 | +else |
| 62 | + git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim |
| 63 | +fi |
| 64 | + |
| 65 | +# Install ohmyzsh, a community framework for managing zsh configurations |
| 66 | +sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
| 67 | + |
| 68 | +# Clone the dotfiles repo, stow vim and zsh, then remove the repo. |
| 69 | +git clone https://github.com/ranguli/dotfiles/vim |
| 70 | +cd ./dotfiles && stow vim && stow zsh && rm -rf ../dotfiles/ |
| 71 | + |
| 72 | +# Housekeeping, such as updating python, etc. |
| 73 | +pip install --upgrade pip setuptools |
| 74 | + |
0 commit comments