-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
44 lines (30 loc) · 1.09 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
#!/usr/bin/env bash
# Get current dir (so run this script from anywhere)
export DOTFILES_DIR EXTRA_DIR
DOTFILES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
EXTRA_DIR="$HOME/.extra"
# Update dotfiles itself first
[ -d "$DOTFILES_DIR/.git" ] && git --work-tree="$DOTFILES_DIR" --git-dir="$DOTFILES_DIR/.git" pull origin master
# Bunch of symlinks
ln -sfv "$DOTFILES_DIR/runcom/.bash_profile" ~
ln -sfv "$DOTFILES_DIR/runcom/.inputrc" ~
# ln -sfv "$DOTFILES_DIR/runcom/.gemrc" ~
ln -sfv "$DOTFILES_DIR/git/.gitconfig" ~
ln -sfv "$DOTFILES_DIR/git/.gitignore_global" ~
source osxdefaults.sh
# Package managers & packages
#. "$DOTFILES_DIR/install/brew.sh"
#. "$DOTFILES_DIR/install/bash.sh"
#. "$DOTFILES_DIR/install/npm.sh"
#. "$DOTFILES_DIR/install/pip.sh"
# if [ "$(uname)" == "Darwin" ]; then
# . "$DOTFILES_DIR/install/brew-cask.sh"
# . "$DOTFILES_DIR/install/gem.sh"
# ln -sfv "$DOTFILES_DIR/etc/mackup/.mackup.cfg" ~
# fi
# Run tests
# bats test/*.bats
# Install extra stuff
# if [ -d "$EXTRA_DIR" -a -f "$EXTRA_DIR/install.sh" ]; then
# . "$EXTRA_DIR/install.sh"
# fi