Ready to get started? Follow the instructions for your operating system.
-
Install Prerequisites
sudo dnf install -y git gh
-
Authenticate with GitHub
This command will open a browser for you to log in and will offer to set up an SSH key for you.
gh auth login --web --git-protocol ssh
-
Clone the Dotfiles Repository
gh repo clone charliesbot/dotfiles ~/dotfiles -
Run the Fedora Installation Script
For a deep dive into what this script does, check out the Fedora README.
cd ~/dotfiles bash fedora/install-fedora.sh
-
Install Xcode Command Line Tools
You'll need the Xcode Command Line Tools to get
git. Run this command:xcode-select --install
A dialog will appear. Click Install and wait for it to complete (this may take a few minutes).
-
Clone the Repository
Use HTTPS to clone (no SSH setup needed yet):
git clone https://github.com/charliesbot/dotfiles.git ~/dotfiles -
Run the Installation Script
The installation script will handle the rest, including installing Homebrew and all other dependencies.
cd ~/dotfiles bash macos/install-macos.sh
-
Authenticate with GitHub and Update Git Remote
After the script completes, set up GitHub authentication with SSH:
gh auth login --web --git-protocol ssh
- When asked for your preferred protocol, choose SSH.
- When
ghoffers to change your existing remote from HTTPS to SSH, say Yes.
This will reconfigure your local repository to use your new SSH key, allowing you to
pushandpullchanges seamlessly.Alternatively, if
ghdoesn't prompt you, update the remote manually:cd ~/dotfiles git remote set-url origin git@github.com:charliesbot/dotfiles.git
Made with ☕ and a whole lot of terminal time.