A basic set of config files so that I don't have to painfuly setup a new server each time.
- Default Shell
- ZSH
- Neovim
Run the below for setup:
GIT_REPO_URL="https://github.com/shivamkedia17/dotfiles-server.git"
if [ ! -d "$HOME/.config" ]; then
echo "The ~/.config directory does not exist. Creating it now..."
mkdir -p "$HOME/.config"
if [ $? -ne 0 ]; then
echo "Error: Failed to create ~/.config directory. Check permissions."
exit 1
fi
echo "~/.config directory created successfully."
fi
git -C "$HOME/.config" clone --recurse-submodules "$GIT_REPO_URL" || {
echo "Error: Failed to clone the repository. Please check the URL and your network connection."
exit 1
}
chmod +x .config/setup.sh
sudo sh .config/setup.sh