Skip to content

Marfien/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A collections of files and scripts to quickly setup new workstations and theire environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published