Merge "Install vim text editor"
This commit is contained in:
commit
8687a1cd01
elements/manila-ubuntu-core
17
elements/manila-ubuntu-core/post-install.d/50-update-vim-config
Executable file
17
elements/manila-ubuntu-core/post-install.d/50-update-vim-config
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
||||
set -x
|
||||
fi
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
# Add useful config options for vim config
|
||||
vim_config="/etc/vim/vimrc"
|
||||
echo "set hls is" >> $vim_config
|
||||
echo "set tabstop=4" >> $vim_config
|
||||
echo "set shiftwidth=4" >> $vim_config
|
||||
echo "set expandtab" >> $vim_config
|
||||
echo "set nu" >> $vim_config
|
||||
echo "set background=dark" >> $vim_config
|
||||
echo "set cc=80" >> $vim_config
|
@ -10,4 +10,10 @@ sudo sed -i -E "s/#\s(deb.+universe)$/\1/g" /etc/apt/sources.list
|
||||
|
||||
apt-get update
|
||||
apt-get upgrade -y
|
||||
apt-get install python sudo openssh-server rpcbind -y
|
||||
apt-get install \
|
||||
python \
|
||||
sudo \
|
||||
openssh-server \
|
||||
rpcbind \
|
||||
vim \
|
||||
-y
|
||||
|
Loading…
x
Reference in New Issue
Block a user