-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_vim.sh
More file actions
executable file
·51 lines (47 loc) · 1.39 KB
/
Copy pathinstall_vim.sh
File metadata and controls
executable file
·51 lines (47 loc) · 1.39 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
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
# Recommended to install locally that way it is easier to update in the future.
read -p "Do you have root permissions in this server? [y/n] " RESPONSE
get_vim_repo() {
git clone https://github.com/vim/vim.git
cd vim
}
case $RESPONSE in
"y")
sudo apt-get update
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \
python3-dev ruby-dev lua5.1 lua5.1-dev libperl-dev git -y
get_vim_repo
echo "Good time to grab a cup of coffee :)"
sleep 5
./configure --with-features=huge
make -j $(nproc)
sudo make -j $(nproc) install
cd ../
rm -rf vim/
;;
"n")
if [ ! -d "$HOME/local" ]; then
echo "Creating a local directory in $HOME"
mkdir -p $HOME/local
fi
get_vim_repo
echo "Good time to grab a cup of coffee :)"
sleep 5
#Need to install ncurses if not there
#LDFLAGS=-L$HOME/local/lib ./configure --prefix=$HOME/local --with-features=huge
#See install_tmux.sh
./configure --prefix=$HOME/local --with-features=huge
make -j $(nproc)
make -j $(nproc) install
cd ../
rm -rf vim/
echo "Please add the following to your PATH variable:"
echo "export PATH=$HOME/local/bin:$PATH"
echo "Don't forget to: source ~/.bashrc"
;;
*)
echo "Invalid input!"
;;
esac