-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·61 lines (41 loc) · 1.21 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh
set -e
# directory where this script is located
DIR=`dirname "$BASH_SOURCE"`
DIR=`realpath $DIR`
ln -sf $DIR/gdbinit $HOME/.gdbinit
ln -sf $DIR/mybashrc $HOME/.mybashrc
# for neovim
mkdir -p $HOME/.config/nvim
ln -sf $DIR/vimrc $HOME/.config/nvim/init.vim
# for gvim/macvim
ln -sf $DIR/vimrc $HOME/.vimrc
# tmux
ln -sf $DIR/tmux.conf ~/.tmux.conf
# global gitignore
ln -sf $DIR/gitignore ~/.gitignore
git config --global core.excludesfile '~/.gitignore'
# for YouCompleteMe (Vim plugin)
curl https://raw.githubusercontent.com/Valloric/ycmd/master/cpp/ycm/.ycm_extra_conf.py > ~/.ycm_extra_conf.py
# for npm
echo 'prefix = ${NPM_PACKAGES}' >> ~/.npmrc
# custom path
mkdir -p ~/.bin
mkdir -p ~/.local/bin
# python3 by default
ln -sf /usr/bin/python3 ~/.bin/python
# vscode
mkdir -p ~/.config/Code/User/
ln -sff $DIR/settings.json ~/.config/Code/User/settings.json
# lldbattach helper
ln -sf $DIR/lldbattach ~/.bin
# ipdb installed
ln -sf $DIR/install_ipdb.sh ~/.bin
# create useful dirs
mkdir -p ~/Dev
echo
echo "Consider installing node.js by typing:"
echo "curl -sL install-node.now.sh/lts | PREFIX=~/.local bash"
echo
echo "Install done"
echo "if needed add . .mybashrc at the end of your .bashrc or .zshrc."