-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
90 lines (68 loc) · 2.82 KB
/
install.sh
File metadata and controls
90 lines (68 loc) · 2.82 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
#! /bin/bash
function setupWorkstation()
{
# install homebrew and associated programs
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew tap Homebrew/bundle
brew bundle --file="Brewfile-workstation"
# install fzf
/usr/local/opt/fzf/install
# install tmux gitbar
git clone https://github.com/aurelien-rainone/tmux-gitbar.git ~/.tmux-gitbar
# symlink
ln -sfv "$HOME/.dotfiles/editors/.vimrc" ~
rm -r "$HOME/Library/Application Support/Sublime Text/Packages/User/"
ln -sfv "$HOME/.dotfiles/editors/sublime/" "$HOME/Library/Application Support/Sublime Text/Packages/User"
ln -sfv "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" "/usr/local/bin/subl"
rm -r "$HOME/Library/Developer/Xcode/UserData/FontAndColorThemes"
ln -sfv "$HOME/.dotfiles/editors/xcode/" "$HOME/Library/Developer/Xcode/UserData/FontAndColorThemes"
ln -sfv "$HOME/.dotfiles/git/.gitconfig" ~
ln -sfv "$HOME/.dotfiles/git/.gitignore_global" ~
ln -sfv "$HOME/.dotfiles/git/.hgignore_global" ~
ln -sfv "$HOME/.dotfiles/system/.bash_profile" ~
ln -sfv "$HOME/.dotfiles/system/.inputrc" ~
ln -sfv "$HOME/.dotfiles/system/.git-completion.bash" ~
ln -sfv "$HOME/.dotfiles/tmux/.tmux.conf" ~
ln -sfv "$HOME/.dotfiles/tmux/.tmux-gitbar.conf" ~
source .macos
}
function setupMacServer()
{
# install homebrew and associated programs
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap Homebrew/bundle
brew bundle --file="Brewfile-server"
# install fzf
/usr/local/opt/fzf/install
# install tmux gitbar
git clone https://github.com/aurelien-rainone/tmux-gitbar.git ~/.tmux-gitbar
# rsub
sudo wget -O /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate
sudo chmod +x /usr/local/bin/rsub
# symlink
ln -sfv "$HOME/.dotfiles/editors/.vimrc" ~
ln -sfv "$HOME/.dotfiles/git/.gitconfig" ~
ln -sfv "$HOME/.dotfiles/git/.gitignore_global" ~
ln -sfv "$HOME/.dotfiles/git/.hgignore_global" ~
ln -sfv "$HOME/.dotfiles/system/.bash_profile" ~
ln -sfv "$HOME/.dotfiles/system/.inputrc" ~
ln -sfv "$HOME/.dotfiles/system/.git-completion.bash" ~
ln -sfv "$HOME/.dotfiles/tmux/.tmux.conf" ~
ln -sfv "$HOME/.dotfiles/tmux/.tmux-gitbar.conf" ~
}
function setupUbuntuServer()
{
# rsub
sudo wget -O /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate
sudo chmod +x /usr/local/bin/rsub
# symlink
ln -sfv "$HOME/.dotfiles/editors/.vimrc" ~
ln -sfv "$HOME/.dotfiles/git/.gitconfig" ~
ln -sfv "$HOME/.dotfiles/git/.gitignore_global" ~
ln -sfv "$HOME/.dotfiles/git/.hgignore_global" ~
ln -sfv "$HOME/.dotfiles/system/.bash_profile" ~
ln -sfv "$HOME/.dotfiles/system/.inputrc" ~
ln -sfv "$HOME/.dotfiles/system/.git-completion.bash" ~
ln -sfv "$HOME/.dotfiles/tmux/.tmux.conf" ~
ln -sfv "$HOME/.dotfiles/tmux/.tmux-gitbar.conf" ~
}