-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
74 lines (59 loc) · 1.84 KB
/
bootstrap.sh
File metadata and controls
74 lines (59 loc) · 1.84 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/sh
# Install pip
python3 -m ensurepip
python3 -m pip install -U pip
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Install helpful utilities
brew install cmake
brew install csvkit
brew install direnv
brew install dos2unix
brew install --cask flux
brew install gh
brew install htop
brew install iftop
brew install jq
brew install nmap
brew install npm
brew install telnet
brew install the_silver_searcher
brew install tmux
brew install unrar
# Fish Setup
mkdir -p ~/.config/fish/conf.d
mkdir -p ~/.config/powerline-shell
ln -Fvs $ABS_SCRIPT_DIR/fish/config.fish ~/.config/fish/config.fish
ln -Fvs $ABS_SCRIPT_DIR/fish/functions ~/.config/fish/functions
brew install fish
pip install powerline-shell
ln -Fvs $ABS_SCRIPT_DIR/fish/powerline-config.json ~/.config/powerline-shell/config.json
# Fish by default
echo /usr/local/bin/fish | sudo tee -a /etc/shells
chsh -s /usr/local/bin/fish
# VIM settings
brew install macvim
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
mkdir -p ~/dotfiles_old
backup_old() {
[ -e $1 ] && cp $1 ~/dotfiles_old/
}
backup_old ~/.bash_profile
backup_old ~/.gitconfig
backup_old ~/.tmux.conf
backup_old ~/.vimrc
# Directory for all machine-specific scripts
mkdir ~/machine
# Directory for SSH keys
mkdir ~/.ssh
SCRIPT_DIR=$(dirname "$0")
ABS_SCRIPT_DIR=$(cd $SCRIPT_DIR; pwd)
ln -Fvs $ABS_SCRIPT_DIR/bash/bash_profile ~/.bash_profile
ln -Fvs $ABS_SCRIPT_DIR/git/gitconfig ~/.gitconfig
ln -Fvs $ABS_SCRIPT_DIR/git/gitignore_global ~/.gitignore_global
ln -Fvs $ABS_SCRIPT_DIR/git-prompt.sh ~/.git-prompt.sh
ln -Fvs $ABS_SCRIPT_DIR/git-completion.bash ~/.git-completion.bash
ln -Fvs $ABS_SCRIPT_DIR/vim/vimrc ~/.vimrc
ln -Fvs $ABS_SCRIPT_DIR/tmux/tmux.conf ~/.tmux.conf
# Install VIM plugins
vim +PluginInstall +GoInstallBinaries +qall