Skip to content

Instantly share code, notes, and snippets.

@lohanidamodar
Created October 29, 2025 04:27
Show Gist options
  • Select an option

  • Save lohanidamodar/2ae531400d4c448d57c4130e145a229f to your computer and use it in GitHub Desktop.

Select an option

Save lohanidamodar/2ae531400d4c448d57c4130e145a229f to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# clone https://github.com/lohanidamodar/gitpod-dotfiles.git to ~/.dotfiles
# then run the ~/.dotfiles/setup.sh script
if [ -d "${HOME}/.dotfiles" ]; then
echo "Dotfiles directory already exists at ${HOME}/.dotfiles"
echo "Updating existing dotfiles..."
cd "${HOME}/.dotfiles" || exit 1
git pull origin main
else
git clone https://github.com/lohanidamodar/gitpod-dotfiles.git "${HOME}/.dotfiles"
fi
if [ ! -f "${HOME}/.dotfiles/setup.sh" ]; then
echo "Setup script not found in cloned dotfiles repository."
exit 1
fi
bash "${HOME}/.dotfiles/setup.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment