_install_dotfiles


"/home/yossef/notes/git/scripts/_install_dotfiles.md"

path: git/scripts/_install_dotfiles.md

- **fileName**: _install_dotfiles
- **Created on**: 2025-03-26 14:46:35

function for starting install dotfiles

#!/usr/bin/env bash
RC='\e[0m'
RED='\e[31m'
YELLOW='\e[33m'
GREEN='\e[32m'

# for get the dotfiles config from git
dotfile() {
    dir=$HOME/dotfiles
    if [ -d "$dir" ]; then
        echo -e "${GREEN}-- the dotfile is cloned -- ${RC}"
    else 
        dotfileUrl="https://github.com/yossefsabry/dotfiles.git"
        echo -e "${GREEN}-- cloning the config from ${dotfileUrl} -- ${RC}"
        cd ~
        git clone $dotfileUrl
        if [[ $? == 0 ]]; then
            echo -e "${GREEN}-- cloning successfly -> ${dotfileUrl} ----${RC}"
        else 
            echo -e "${RED}** error happend in cloning -> ${dotfileUrl} **${RC}"
        fi
        cd - 
    fi
}
dotfile

continue:./install_fonts.md
before:./install_burpsuite.md