-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu.sh
executable file
·117 lines (100 loc) · 2.49 KB
/
ubuntu.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/usr/bin/env bash
set -e
SRCDIR=`pwd`
echo installing ubuntu dependencies
echo creating folder structure
mkdir -p ~/src
echo updating sources
sudo apt-get update
echo installing programs
sudo apt-get install -y \
zsh \
git \
python \
python3 \
golang
echo installing common dependencies
sudo apt-get install -y \
libncursesw5-dev \
build-essential
echo installing Go
if [[ ! -d /usr/local/go ]] && [[ ! -d /tmp/go ]]; then
cd /tmp
wget "https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz"
sudo tar -xvf "go1.12.6.linux-amd64.tar.gz"
sudo cp -r go /usr/local
fi
echo configuring zsh
sudo wget -O /etc/zsh/zshrc "https://git.grml.org/f/grml-etc-core/etc/zsh/zshrc"
if [[ ! -d ~/src/zsh-autosuggestions ]]; then
git clone "https://github.com/zsh-users/zsh-autosuggestions" ~/src/zsh-autosuggestions
fi
if [[ ! -d /usr/share/zsh/plugins/zsh-autosuggestions ]]; then
sudo mkdir -p /usr/share/zsh/plugins
sudo cp -r ~/src/zsh-autosuggestions /usr/share/zsh/plugins/zsh-autosuggestions
fi
echo setting shell to zsh
chsh -s `which zsh`
echo installing fzf
if [[ ! -d ~/src/fzf ]]; then
git clone --recursive "https://github.com/junegunn/fzf" ~/src/fzf
fi
cd ~/src/fzf
make
make install
sudo cp bin/fzf /usr/local/bin/fzf
echo removing old vim installation
sudo apt-get remove -y vim vim-runtime gvim neovim neovim-runtime
echo installing vim dependencies
# libgnome2-dev \
# libgnomeui-dev \
# libbonoboui2-dev \
sudo apt-get install -y \
ctags \
libgtk2.0-dev \
libatk1.0-dev \
libcairo2-dev \
libx11-dev \
libxpm-dev \
libxt-dev \
python-dev \
python3-dev \
python3-neovim \
ruby-dev \
lua5.1 \
liblua5.1-dev \
libperl-dev \
automake-1.15
echo building vim
if [[ ! -d ~/src/vim ]]; then
git clone "https://github.com/vim/vim" ~/src/vim
git checkout v8.1.2424
fi
cd ~/src/vim
./configure \
--with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-pythoninterp=yes \
--enable-python3interp=yes \
--with-python3-config-dir=/usr/lib/python3.8/config-3.8-x86_64-linux-gnu/ \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--with-luajit \
--enable-gui=gtk2 \
--enable-cscope \
--prefix=/usr/local
make VIMRUNTIMEDIR=/usr/local/share/vim/vim81
sudo make install
echo building vifm
if [[ ! -d ~/src/vifm ]]; then
git clone "https://github.com/vifm/vifm" ~/src/vifm
fi
cd ~/src/vifm
./configure
make
sudo make install
if [[ "$GUI" != "false" ]]; then
echo installing GUI dependencies
echo not implemented on Ubuntu
fi