forked from jwilm/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·45 lines (33 loc) · 1.01 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
#!/bin/bash
script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
function symlink_dotfile() {
local name=$1
local target=$script_dir/${name}
local link_name=$HOME/.${name}
if [[ ! -a $link_name ]]
then
ln -s $target $link_name
fi
}
mkdirp $HOME/.config/
symlink_dotfile "vimrc"
symlink_dotfile "vim"
symlink_dotfile "zshrc"
symlink_dotfile "gvimrc"
# NeoVim symlinks
ln -s $HOME/.vim $HOME/.config/nvim
ln -s $HOME/.vimrc $HOME/.config/nvim/init.vim
tmux/install.sh
system_setup/configure_git.sh
function build_ycm_completers() {
local force=$1
local ycm_path=$script_dir/vim/bundle/YouCompleteMe
local ycmd_path=$ycm_path/third_party/ycmd
local gocode=$ycmd_path/third_party/gocode/gocode
if [[ $force || ! -z $gocode ]] ; then
$ycm_path/install.py --gocode-completer --clang-completer
fi
}
# build_ycm_completers
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)