-
Notifications
You must be signed in to change notification settings - Fork 0
/
farts.sh
29 lines (21 loc) · 919 Bytes
/
farts.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
#!/bin/sh
set -e
set -x
echo "Beginning setup"
# TODO
# - source environment-specific exports
command -v go >/dev/null 2>&1 || { echo "ERROR: go is not installed" >&2; exit 1; }
command -v git >/dev/null 2>&1 || { echo "ERROR: git is not installed" >&2; exit 1; }
command -v screen >/dev/null 2>&1 || { echo "ERROR: screen is not installed" >&2; exit 1; }
command -v vim >/dev/null 2>&1 || { echo "ERROR: vim is not installed" >&2; exit 1; }
mkdir $HOME/cnf
git clone https://github.com/fffinkel/zsh.git $HOME/cnf/zsh
make -C $HOME/cnf/zsh install
git clone https://github.com/fffinkel/vim.git $HOME/cnf/vim
make -C $HOME/cnf/vim install
git clone https://github.com/fffinkel/dotfiles.git $HOME/cnf/dotfiles
make -C $HOME/cnf/dotfiles install
echo "[user]" > ~/.gitconfig
echo " email = [email protected]" >> ~/.gitconfig
echo " name = Matt Finkel" >> ~/.gitconfig
echo "alias s='screen -dRR'" >> ~/.bashrc