This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Update package list | |
sudo apt-get update | |
# Install Vim | |
echo "Installing Vim..." | |
sudo apt-get install -y vim | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Set basic Vim options | |
set nocompatible " Use Vim defaults | |
set number " Show line numbers | |
set relativenumber " Show relative line numbers | |
set showcmd " Show command in bottom bar | |
set cursorline " Highlight current line | |
set wrap " Enable line wrap | |
set tabstop=4 " Number of spaces tabs count for | |
set shiftwidth=4 " Width for autoindents | |
set expandtab " Converts tabs to spaces |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to install Zsh and Git if they are not installed | |
install_dependencies() { | |
echo "Checking for Zsh and Git..." | |
if ! command -v zsh >/dev/null 2>&1; then | |
echo "Zsh is not installed. Installing Zsh..." | |
sudo apt-get update && sudo apt-get install -y zsh | |
else | |
echo "Zsh is already installed." |