Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 49 lines (36 sloc) 1.06 kb
094bb18 @javierjulio Major update: script add/update, cloud66 support
authored
1 #!/bin/bash
2
f8b45ce @javierjulio Create vars for dotfiles and laptop paths
authored
3 DOTFILES_PATH="$HOME/Projects/dotfiles"
4 LAPTOP_PATH="$HOME/Projects/laptop"
5
6
7 if [ -d "$DOTFILES_PATH" ]; then
094bb18 @javierjulio Major update: script add/update, cloud66 support
authored
8 echo "My dotfiles already installed."
9 else
10 echo "Installing my dotfiles..."
f8b45ce @javierjulio Create vars for dotfiles and laptop paths
authored
11 git clone https://github.com/javierjulio/dotfiles.git "$DOTFILES_PATH"
12 cd "$DOTFILES_PATH"
094bb18 @javierjulio Major update: script add/update, cloud66 support
authored
13 rake install
14 fi
c1a0e80 @javierjulio Output message when installing dotfiles and git.
authored
15
094bb18 @javierjulio Major update: script add/update, cloud66 support
authored
16 shopt -s expand_aliases
fb09ecf @javierjulio Replace ~ with $HOME and configure any paths
authored
17 source $HOME/.bashrc
fde2fbf @javierjulio Reload the bash session so we will use our new dotfiles
authored
18 reload
2c6e111 @javierjulio Add commented out dotfiles installation. Not yet sure if this can really...
authored
19
094bb18 @javierjulio Major update: script add/update, cloud66 support
authored
20 if type brew &>/dev/null; then
21 echo -e "\nUpdating Homebrew formula..."
5600e94 @javierjulio Update homebrew installation command and install git using homebrew.
authored
22 brew update
094bb18 @javierjulio Major update: script add/update, cloud66 support
authored
23 else
24 echo -e "\nInstalling Homebrew..."
25 ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
524f04b @javierjulio Add symlink fix for ImageMagick lib files so rmagick gem will install su...
authored
26 fi
27
094bb18 @javierjulio Major update: script add/update, cloud66 support
authored
28 # grc - http://wynnnetherland.com/journal/a-stylesheet-author-s-guide-to-terminal-colors
29 # gawk - used for matching for colorizing (e.g. match-todos)
99477be @javierjulio Use homebrew to install redis
authored
30 brew install git bash-completion grc gawk pkgconfig ghostscript imagemagick postgresql redis
094bb18 @javierjulio Major update: script add/update, cloud66 support
authored
31
32 echo -e "\nRead following Postgres info to setup auto start."
33 pause_and_prompt_to_continue
34
35 brew info postgresql
36
37 pause_and_prompt_to_continue
863ec05 @javierjulio The init script, installs key items first and then goes in order: ruby, ...
authored
38
f8b45ce @javierjulio Create vars for dotfiles and laptop paths
authored
39 cd "$LAPTOP_PATH"
863ec05 @javierjulio The init script, installs key items first and then goes in order: ruby, ...
authored
40
094bb18 @javierjulio Major update: script add/update, cloud66 support
authored
41 ./cloud66
42 ./projects
43 ./ruby
44 ./python
45 ./node
56f7990 @javierjulio Add bats script to install Bats (bash testing)
authored
46 ./bats
0fe5e44 @javierjulio Update to install bash-completion and source scripts and new coda one.
authored
47
094bb18 @javierjulio Major update: script add/update, cloud66 support
authored
48 echo -e "\nDone."
Something went wrong with that request. Please try again.