-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·40 lines (30 loc) · 1.03 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·40 lines (30 loc) · 1.03 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
#!/bin/bash
# TODO:instinst
# Add ability to bump nvim version and rebuild
echo "dotfile: Begin"
tempdir="$(pwd)"
sh ./install_dependencies.sh
if ! [ -x "$(command -v nvim)" ]; then
if [ -f "$HOME/development/neovim/Makefile" ]; then
echo "dotfile: nvim built already"
cd ~/development/neovim || return
else
echo "dotfile: Build nvim"
mkdir ~/development
cd ~/development || return
git clone https://github.com/neovim/neovim
cd neovim || return
git checkout stable
cd neovim && make CMAKE_BUILD_TYPE=RelWithDebInfo
echo "dotfile: Adding VimPlug"
curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi
echo "dotfile: Installing nvim"
sudo make install
nvim --headless "+Lazy! sync" +qa
fi
cd "$tempdir" || exit
sh copy_config.sh
echo "dotfile: Set fish as default shell"
sudo chsh -s "$(which fish)" "$USER"