Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 2.36 KB

README.md

File metadata and controls

44 lines (33 loc) · 2.36 KB

dotfiles

My personal dotfiles

Content

Prerequisites

To use the setup scripts, zsh and Homebrew need to be installed manually first. See their respective docs for instructions. After installing, setup_zsh.sh should be run first, because setup_brew.zsh requires oh-my-zsh to be installed. If Homebrew isn't used or can't be installed, just skip its installation and setup.

The settings in this repo's .gitconfig use delta as the core.pager, so delta needs to either be installed (it is included in Brewfile) or core.pager needs to be overwritten at the end of $HOME/.gitconfig after creating a new one with setup_gitconfig.sh. Configurations for credentials etc. should be placed in the newly created $HOME/.gitconfig as well, so they don't get committed.

Installation

Clone the repo to $HOME/.dotfiles (the path is important)

git clone git@github.com:ninagrosse/dotfiles.git $HOME/.dotfiles
cd $HOME/.dotfiles

Run the setup scripts individually and reload zsh

./setup_zsh.sh
./setup_brew.zsh
./setup_gitconfig.sh
exec zsh

Or run the all-in-one script

./setup_all.sh
exec zsh

Testing

To test the setup scripts, there is a Dockerfile which is based on the latest Ubuntu. It installs some required tools (vim nano curl git zsh brew tree build-essential) and copies all dotfiles, except the .gitignore'd ones, to /root/.dotfiles.

Build the image with docker build -t <some tag> .

Launch a container with docker container run -it --rm <some tag> bash

Inside the container execute the setup scripts to test.