DEVenv/linux_install.sh
2021-01-07 10:23:02 +11:00

28 lines
809 B
Bash
Executable File

if [[ ! -f "${HOME}/.vim/autoload/plug.vim" ]]; then
wget --directory-prefix=../.vim/autoload https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi
if [[ ! -f "${HOME}/clang-format.py" ]]; then
wget --directory-prefix=${HOME}/.vim/clang-format.py https://raw.githubusercontent.com/llvm/llvm-project/main/clang/tools/clang-format/clang-format.py
fi
#
# Dependencies
#
sudo apt install exuberant-ctags neovim clang-format ripgrep
#
# NVim
#
cp --force Installer/_vimrc ~/.vimrc
cp --force Installer/unix_nvim_init.vim ~/.config/nvim/init.vim
cp --force Installer/clang-format-style-file ~/_clang-format
#
# Ctags
#
mkdir --parents Bin
rm --force Bin/ctags_cpp.sh
echo ctags --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ \$\@ >> Bin/ctags_cpp.sh
chmod +x Bin/ctags_cpp.sh