forked from babymastodon/rc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_basic.sh
executable file
·41 lines (31 loc) · 985 Bytes
/
install_basic.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
#!/bin/bash
# link config files
ln -sf $PWD/vimrc ~/.vimrc
ln -sf $PWD/ideavimrc ~/.ideavimrc
ln -sf $PWD/tmux.conf ~/.tmux.conf
ln -sf $PWD/bashrc_extra ~/.bashrc_extra
ln -sf $PWD/gitignore_global ~/.gitignore_global
mkdir -p ~/.vim/syntax/
ln -sf $PWD/coffee.vim ~/.vim/syntax/coffee.vim
mkdir -p ~/.vim/indent/
ln -sf $PWD/coffee.indent.vim ~/.vim/indent/coffee.vim
# source .bashrc_extra from .bashrc
touch ~/.bashrc
cat ~/.bashrc | grep -v 'bashrc_extra' > /tmp/bashrc
echo source ~/.bashrc_extra >> /tmp/bashrc
mv /tmp/bashrc ~/.bashrc
source ~/.bashrc
# install scripts into the bin
mkdir -p ~/bin
# install config files into etc
mkdir -p ~/etc
# install vim plugins
if [ ! -d ~/.vim/bundle/vundle ]
then
mkdir -p ~/.vim/bundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
fi
# set git defaults
git config --global core.editor vim
git config --global push.default simple
git config --global core.excludesfile ~/.gitignore_global