my .files - powered by Ansible
MIT License
These are my dotfiles, they can be used under macOS and Linux (mainly Arch Linux but Ubuntu is also supported). What is special about it is that Ansible is used to configure and sync your system settings. This has many advantages in contrast to simple bash scripts or a Makefile
.
$ update
$ dotfiles
$ brewsync
between hostsdotfiles/ansible/tasks/macos_defaults.yml
)dotfiles/ansible/tasks/arch.yml
)~/
clean~/.dotfiles/ansible/dotfiles.yml
)$ git clone https://github.com/elnappo/dotfiles.git ~/.dotfiles
$ cd ~/.dotfiles/init
$ ./setup.sh
├── ansible
│ ├── tasks
│ │ └── macos_defaults.yml
│ ├── vars
│ │ ├── casks.yml
│ │ ├── formula.yml
│ │ ├── gems.yml
│ │ ├── pip.yml
│ │ └── taps.yml
│ └── vars.yml
└── init
└── macos.bash
Some interesting variables for the Ansible playbook are set in dotfiles/ansible/vars.yml
login_shell: /opt/homebrew/bin/fish
sudo_without_password: true
use_dnscrypt: true
install and configure DNSCrypt
login_window_text: Enter any 11-digit prime number to continue.
set a custom message to appear at the bottom of your login window (macOS)Clone and install dotfiles repository:
$ git clone https://github.com/<YOURNAME>/dotfiles.git ~/.dotfiles
$ cd ~/.dotfiles/init
$ ./setup.sh
gitconfig
~/.ssh/config
or system wide in /etc/ssh/ssh_config
, an basic example can be found at contrib/ssh_config
.