This repository contains all dotfiles/config files laying in user home directory
(commonly known as ~)
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/Depending on your operating system, you need to execute on of the following commands next:
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>.ymlExample 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