-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·61 lines (45 loc) · 1.51 KB
/
setup.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
#! /bin/bash
## Find Current Script Directory
CUR_DIR=$(dirname "${BASH_SOURCE[0]}")
PWD=$(pwd)
if [[ "$CUR_DIR" != *"$PWD"* ]] && [[ "$CUR_DIR" != /* ]]; then # prepend PWD if it is not in DIR and DIR not absolute
CUR_DIR="$PWD/$(echo "$CUR_DIR" | sed s/^\\.\\/?// )" # to make sure this is becomes an absolute path
fi
# Settings changes
changes=()
## Check if exists before linking to template (TODO: append even if it does? or source this?)
if [[ ! -e ~/.bash_profile ]]; then
ln -s "$CUR_DIR/.bash_profile.sym" ~/.bash_profile
changes+=("bash_profile")
fi
if [[ ! -e ~/.bashrc ]]; then
ln -s "$CUR_DIR/.bashrc.sym" ~/.bashrc
changes+=("bashrc")
fi
if [[ " ${changes[@]} " =~ " bash_profile " ]]; then
echo "File added: ~/.bash_profile --- run 'source ~/.bash_profile' to see the changes"
fi
## TODO: ignore gitfetch in global git config
## 1. create file in ~
## 2. git config --global core.excludesfile <new_file>
## Attempt to set basic Vim settings
lib/bvimrc
## TODO: Git Autocompletion
# https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion
# Advanced Tools
# TODO: Copy server_profile if ssh into machine.
#TODO: install atom
# nuclide
# git log
# atom-ternjs
# language-babel (or react?) https://orktes.github.io/atom-react/#syntax-highlighting
# highlight selected?
# linter-eslint (ignore linter dependency)
# js-refactor
# prettier-atom
# mocha-test-runner
### MacMini
# atom-html-preview
# autocomplete-modules
# color-picker
# pigments