updating env_setup.sh

This commit is contained in:
2025-08-26 19:54:27 +03:00
parent 3469aa57e6
commit d3d1f264c4
2 changed files with 46 additions and 1 deletions

View File

@@ -1,11 +1,16 @@
#!/bin/bash
: << cmt
This script is used to setup the environment
for development in C and C++.
cmt
# To setup the environment
function env_setup{
function settingUpVimrc{
# Setting up the .vimrc
@@ -21,3 +26,34 @@ function env_setup{
source $HOME/.vimrc
}
# To setup latest vim
function settingUpLatestVim{
# Installing the required packages.
user = ""
if [ '$(whoami)' = 'root' ]; then
user = ""
else
user = "sudo"
$user apt install git
$user apt install make
$user apt install clang
$user apt install libtool-bin
$user apt install libxt-dev
$user apt install python3-dev
$user apt install libpython3-dev
# Clone the vim official repo.
git clone https://github.com/vim/vim.git
# Configure for compilation.
./vim/src/configure --with-features=huge --enable-python3interp=yes --enable-multibyte --enable-cscope --prefix=/usr/local
}