-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
32 lines (19 loc) · 963 Bytes
/
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
#!/usr/bin/env bash
##
## This script copied from https://github.com/webpro/dotfiles/blob/master/install.sh
####################################################
## Get current dir (so run this script from anywhere)
export DOTFILES_DIR
DOTFILES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # the full directory name of the script no matter where it is being called from
## Update dotfiles itself first
[ -d "$DOTFILES_DIR/.git" ] && git --work-tree="$DOTFILES_DIR" --git-dir="$DOTFILES_DIR/.git" pull origin master
## Create symlinks for dotfiles in home directory
ln -sfv "$DOTFILES_DIR/runcom/.bash_profile" ~
ln -sfv "$DOTFILES_DIR/runcom/.profile" ~
ln -sfv "$DOTFILES_DIR/runcom/.bashrc" ~
## Package managers and packages (order matters)
. "$DOTFILES_DIR/install/apt-get.sh"
. "$DOTFILES_DIR/install/install-emacs.sh"
. "$DOTFILES_DIR/install/install-miniconda.sh"
. "$DOTFILES_DIR/install/conda.sh"
. "$DOTFILES_DIR/install/git.sh"