Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Puts Debuggerer
Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
You can find many tools on GitHub (or elsewhere) to bootstrap your Dotfiles. Some people choose to rely on Ansible, others on some tools you have to install. But how to install a tool that install the tools? Manual installation is not an option. It's like a chicken-egg problem.
View on GitHub
It looks like we are starting to talk about code, notably infrastructure as code. Code nowadays is in a version control software (VCS). The most broadly use is Git. In order to make it shareable to everyone, you must store your Git repository on GitHub, GitLab, Bitbucket, etc. They are easy to use, well adopted by the community and easy to find.
#!/usr/bin/env bash set -o nounset -o pipefail -o errexit main() { local INSTALL_PATH="${HOME}/code" local GITHUB_USER="ViBiOh" local DOTFILES_NAME="dotfiles" local DOTFILES_BRANCH="main" local ARCHIVE_FILENAME="${INSTALL_PATH}/dotfiles.zip" mkdir -p "${INSTALL_PATH}" curl \ --disable \ --silent \ --show-error \ --location \ --max-time 60 \ --output "${ARCHIVE_FILENAME}" "https://github.com/${GITHUB_USER}/${DOTFILES_NAME}/archive/${DOTFILES_BRANCH}.zip" unzip "${ARCHIVE_FILENAME}" -d "${INSTALL_PATH}" rm -f "${ARCHIVE_FILENAME}" rm -rf "${INSTALL_PATH:?}/${DOTFILES_NAME}" mv "${INSTALL_PATH}/${DOTFILES_NAME}-${DOTFILES_BRANCH}" "${INSTALL_PATH}/${DOTFILES_NAME}" ( cd "${INSTALL_PATH}/${DOTFILES_NAME}" "./init" -a git init git remote add origin "http://github.com/${GITHUB_USER}/${DOTFILES_NAME}.git" git fetch origin git checkout --force "${DOTFILES_BRANCH}" ) } main "${@}"
Note that Brew, the package manager for macOS, is not built-in and must be installed manually first.