-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·31 lines (23 loc) · 854 Bytes
/
install.sh
File metadata and controls
executable file
·31 lines (23 loc) · 854 Bytes
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
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
PROFILE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PATH="$PROFILE_DIR/bin:$PATH"
mkdir -p $PROFILE_DIR/fonts
mkdir -p $PROFILE_DIR/git/template/hooks
mkdir -p $PROFILE_DIR/vim/tmp
mkdir -p $PROFILE_DIR/vim/bundle
ln -sf $PROFILE_DIR/bash/login ~/.bash_profile
ln -sf $PROFILE_DIR/bash/bashrc ~/.bashrc
ln -sf $PROFILE_DIR/git/config ~/.gitconfig
ln -sf $PROFILE_DIR/inputrc ~/.inputrc
ln -sf $PROFILE_DIR/vim/vimrc ~/.vimrc
ln -sf $PROFILE_DIR/fonts ~/.fonts
for hook in $( cd $PROFILE_DIR/git/hooks ; ls ); do
ln -sf $PROFILE_DIR/git/hooks/$hook $PROFILE_DIR/git/template/hooks/$hook
done
git config --global core.excludesfile $PROFILE_DIR/git/ignore
git init
git clone https://github.com/VundleVim/Vundle.vim.git $PROFILE_DIR/vim/bundle/Vundle.vim
vim +PluginInstall +qall