Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.21 KB

File metadata and controls

51 lines (38 loc) · 1.21 KB

dotfiles

This repository contains all dotfiles/config files laying in user home directory (commonly known as ~)

Prerequirements

Make sure you have git and ansible installed on your system.

Clone this repository into your home directory:

git clone git@github.com:Marfien/dotfiles.git ~/.dotfiles/

Setup

Depending on your operating system, you need to execute on of the following commands next:

Linux/MacOS

This will prompt you for your password twice. One for sudo access and one for the become of ansible. The sudo true creates a sudo session which allows ansible to install brew in non-interactive mode.

sudo true && ansible-playbook \
  -i ~/.dotfiles/ansible/hosts \
  --ask-become-pass \
  --extra-vars 'dotfiles_home=~/.dotfiles' \
  ansible/<wsl|workstation>.yml

Fast forward

Example script for Debian/Ubuntu:

sudo apt install git ansible -y
ssh-keygen -t ed25519 -C 'My new workstation'
# Add ssh key to github
DOTFILES_HOME="$HOME/.dotfiles"
git clone git@github.com:Marfien/dotfiles.git "$DOTFILES_HOME"
sudo true && ansible-playbook \
  -i ansible/hosts \
  --ask-become-pass \
  --extra-vars "dotfiles_home=$DOTFILES_HOME" \
  ansible/workstation.yml