-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
55 lines (38 loc) · 1.61 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
#!/usr/bin/env bash
# Get current dir (so run this script from anywhere)
export DOTFILES_DIR YELLOW NC
DOTFILES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# Make utilities available
PATH="$DOTFILES_DIR/bin:$PATH"
# Update dotfiles itself first
if is-executable git -a -d "$DOTFILES_DIR/.git"; then git --work-tree="$DOTFILES_DIR" --git-dir="$DOTFILES_DIR/.git" pull origin master; fi
mkdir ~/Sites
# execute flag on bin
chmod u+x "$DOTFILES_DIR/bin/*"
xcode-select --install
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# TODO: https://github.com/mas-cli/mas ?
brew install fish git rbenv node npm yarn php postgresql redis trash
curl -L https://get.oh-my.fish | fish
npm i -g git-open http-server internal-ip-cli public-ip-cli wifi-password-cli svgo
brew cask install google-chrome firefox atom spotify slack sketch hyper insomnia dashlane authy divvy transmission vlc discord docker
brew cask install font-lato font-montserrat font-nunito font-open-sans font-roboto font-titillium-web font-ubuntu
# Create symlinks
echo -e "${YELLOW}Create symlinks${NC}"
ln -sfv "$DOTFILES_DIR/.gitconfig" ~
ln -sfv "$DOTFILES_DIR/.gitignore_global" ~
ln -sfv "$DOTFILES_DIR/.atom" ~
ln -sfv "$DOTFILES_DIR/.hyper.js" ~
ln -sfv "$DOTFILES_DIR/omf" ~/.config
ln -sfv "$DOTFILES_DIR/config.fish" ~/.config/fish
ln -sfv "$DOTFILES_DIR/.pryrc" ~
# Setup Fish
omf install
omf update
# Setup Atom
apm install --packages-file "$DOTFILES_DIR/.atom/package.list"
bash "$DOTFILES_DIR/macos.sh"
bash "$DOTFILES_DIR/dock.sh"