My dotfiles...
The substring expansion ${parameter:offset:length} is a bashism and does not work when /bin/sh points to a shell other than bash, e.g. on Ubuntu. This commit replaces this expansion with a call to awk, inspired by the solution at: https://wiki.ubuntu.com/DashAsBinSh |
||
---|---|---|
bin | ||
dircolors | ||
files | ||
.gitattributes | ||
.gitignore | ||
.key | ||
bootstrap | ||
README.md |
Prerequisites
Only ansible is required for installing the dotfiles.
NOTE: git-crypt and gpg are needed to decrypt sensitive information in the repository, but these are installed by the ansible playbook.
Install ansible on Linux
sudo apt install -y ansible
Install ansible on macOS
brew install ansible
Installation
Steps:
- Clone the repo.
- Play the
local.yml
ansible playbook. - Decrypt key & initialize git-crypt to access sensitive data.
Gimme the code:
git clone https://git.schauenburg.me/fernando/dotfiles.git $HOME/.dotfiles
cd $HOME/.dotfiles
ansible-playbook local.yml
gpg -d --output - <(base64 -d .key) | git crypt unlock -