Repository navigation
Expand file tree
/
Copy pathdotfiles.sh
More file actions
95 lines (79 loc) · 4.56 KB
/
Copy pathdotfiles.sh
File metadata and controls
95 lines (79 loc) · 4.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
###############################################################################
###############################################################################
## ##
## ###### ##### ########## ##
## ## ## ## ## ## ##
## ## ## ## ## ## ##
## ## ## ## ## ## ##
## ## ## ## ## ## ##
## ## ## ## ## ## ##
## ###### ##### ## ##
## ##
## ########## ########## ## ########## ##### ##
## ## ## ## ## ## # ##
## ######## ## ## ## ## ##
## ####### ## ## ####### ##### ##
## ## ## ## ## ## ##
## ## ## ## ## # ## ##
## ## ########## ########## ########## #### ##
## ##
###############################################################################
###############################################################################
##
## Alpha version 1: 2014-01-31
## Still need to understand how to get:
## - Starting all applications on boot
## - Getting the accessibility applications running from scratch
##
# Setting up the environment
# It was easier to move everything to $HOME than to wonder how on earth to
# get it working the other ways
if [[ $PWD != $HOME/.dotfiles ]]; then
mv $PWD $HOME/.dotfiles
fi
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until dotfile.sh has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Install Xcode and the Command Line Tools
# xcode-select --install
# Make the directories we're used to use
mkdir $HOME/.dotfiles/term $HOME/.dotfiles/term/colours
mkdir $HOME/Documents/Uninstall_scripts $HOME/bin
# Install all Apps
sh $HOME/.dotfiles/.brew
# Get oh my zsh! & link it to the $HOME dir
hub clone robbyrussell/oh-my-zsh $HOME/.dotfiles/oh-my-zsh
# ln -s $HOME/.dotfiles/oh-my-zsh $HOME/.oh-my-zsh
# Get iTerm and Sublime Text to work to our liking:
# Get the real agnoster theme to work and the Source Code Pro font for sublime
# Get the font needed for the agnoster theme
cd $HOME/.dotfiles/term && git clone https://gist.github.com/3712874.git
cd $HOME/.dotfiles/term && wget https://gist.github.com/qrush/1595572/raw/417a3fa36e35ca91d6d23ac961071094c26e5fad/Menlo-Powerline.otf
# Install the fonts and erase the folders
cp $HOME/.dotfiles/term/Menlo-Powerline.otf $HOME/Library/Fonts/Menlo-Powerline.otf
mkdir $HOME/.dotfiles/scp && cd $HOME/.dotfiles/scp
wget http://sourceforge.net/projects/sourcecodepro.adobe/files/SourceCodePro_FontsOnly-1.017.zip/download && tar xjvf download
cp $HOME/.dotfiles/scp/SourceCodePro_FontsOnly-1.017/OTF/*.otf $HOME/Library/Fonts/ && cd $HOME && rm -rf $HOME/.dotfiles/scp
# Get the Solarized dark dircolors for ls to work with dircolors
cd $HOME/.dotfiles/term/colours && hub clone seebi/dircolors-solarized
# Get the Solarized dark iterm theme (the one in github not working)
cd $HOME/.dotfiles/term/colours
wget http://www.iterm2.com/hostedcolors/Solarized%20Dark.itermcolors
# Install the git-flow completion plugin
cd $HOME/.dotfiles && git clone https://github.com/bobthecow/git-flow-completion.git
# Configure dropbox and wait for full download (around 16 Gigs as of 2013/11/08)
# This will be necessary to copy the Sublime Text 2 prefs and other preferences
# that are synced by default
open /opt/homebrew-cask/Caskroom/dropbox/latest/Dropbox.app/
# Run .osx conf files to get mac working to our liking
# sh $HOME/.dotfiles/.osx
# Run the .python install script
# sh $HOME/.dotfiles/.python
# Run the .extra.sh script to get the extra apps working
# comment if unnecessary
cd $HOME/.dotfiles/.extra
# Give message to wait until dropbox has stopped syncing
echo 'Wait until dropbox has stopped syncing and run'
echo 'sh $HOME/.dotfiles/.app-prefs'
echo 'Also run sh $HOME/.dotfiles/.osx to get osx to an OK liking'