-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·74 lines (65 loc) · 1.63 KB
/
install.sh
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
#!/usr/bin/env bash
set -e
# Run this from the project directory
# SSH
ln -fs $PWD/ssh/config $HOME/.ssh/config
# Git
ln -fs $PWD/git/config $HOME/.gitconfig
ln -fs $PWD/git/ignore $HOME/.gitignore_global
# set up fish config
mkdir -p $HOME/.config/fish/
echo "
. $PWD/fish/prompt.fish
. $PWD/fish/paths.fish
. $PWD/fish/aliases.fish
. ~/personal_projects/virtualfish/virtual.fish
set PATH $PWD/scripts/ /usr/local/bin \$PATH
" >> $HOME/.config/fish/config.fish
# TODO: install homebrew, update git
# install fish, and make it the default
if test ! -f /usr/local/bin/fish; then
brew install autoconf || true
mkdir temp
cd temp
curl -o fish.tgz https://nodeload.github.com/fish-shell/fish-shell/zip/master
tar xzf fish.tgz
cd fish-shell-master
autoconf
./configure --without-xsel
make
sudo make install
cd ../..
rm -rf temp
fi
# todo: set default shell
# install chocolat
if test ! -d /Applications/Chocolat.app/; then
mkdir temp
cd temp
curl -o choc.zip http://files.fileability.net/Chocolat_1.4.3.zip
unzip choc.zip
mv Chocolat.app /Applications/
cd ..
rm -rf temp
fi
# install source code pro
if test ! -f ~/Library/Fonts/SourceCodePro-Regular.otf; then
mkdir temp
cd temp
curl -o scp.zip http://cloud.github.com/downloads/adobe/source-code-pro/SourceCodePro_FontsOnly-1.013.zip
unzip scp.zip
mv SourceCodePro_FontsOnly-1.013/OTF/*.otf ~/Library/Fonts/
cd ..
rm -rf temp
fi
# install alfred
if test ! -d /Applications/Alfred.app/; then
mkdir temp
cd temp
curl -o alfred.zip http://cachefly.alfredapp.com/alfred_1.3.2_265.zip
unzip alfred.zip
mv Alfred.app /Applications/
cd ..
rm -rf temp
open /Applications/Alfred.app
fi