-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·37 lines (27 loc) · 1.32 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
#!/usr/bin/env bash
# A simple, idempotent blahfiles install
blah_dir="$(cd "$(dirname "$0")" || return; pwd -P)"
# link options
ln_opts="-sfv"
# make symlinks
ln $ln_opts "$blah_dir/bash/bashrc" "$HOME/.bashrc"
ln $ln_opts "$blah_dir/bash/bash_profile" "$HOME/.bash_profile"
ln $ln_opts "$blah_dir/zsh/zshrc" "$HOME/.zshrc"
ln $ln_opts "$blah_dir/eslint/eslintrc.yaml" "$HOME/.eslintrc.yaml"
ln $ln_opts "$blah_dir/git/gitconfig" "$HOME/.gitconfig"
ln $ln_opts "$blah_dir/git/gitignore_global" "$HOME/.gitignore_global"
ln $ln_opts "$blah_dir/vscode/settings.json" "$HOME/Library/Application Support/Code/User/settings.json"
ln $ln_opts "$blah_dir/vscode/keybindings.json" "$HOME/Library/Application Support/Code/User/keybindings.json"
# symlink asimov to automatically load it on login
asimov_plist="com.stevegrunwell.asimov.plist"
ln $ln_opts "$blah_dir/asimov/$asimov_plist" "$HOME/Library/LaunchAgents/$asimov_plist"
# Independent vim config install
. vim/install.sh
# TMUX
ln $ln_opts "$blah_dir/tmux/tmux.conf" "$HOME/.tmux.conf"
[ -d "$HOME/.tmux" ] || mkdir "$HOME/.tmux"
[ -d "$HOME/.tmux/plugins/tpm" ] || git clone https://github.com/tmux-plugins/tpm "$HOME/.tmux/plugins/tpm"
# fish
[ -d "$HOME/.config" ] || mkdir "$HOME/.config"
#ln -n $ln_opts "$vim_dir" "$HOME/.config/fish"
ln $ln_opts "$blah_dir/fish" "$HOME/.config/fish"