My dotfiles...
The solarize script evalss the output of the dircolors(1) but the LS_COLORS variable gets exported in its environmnent, not the calling shell where we actually need it so ls(1) and other programs wiill inherit it. Therefore, the evaluation of the dircolors(1) output is moved to the change_bg() function in the shell, so that the LS_COLORS variable is available to any children of the shell. The reason why I had missed this is that in most systems I have ls aliased to exa, which does not care about LS_COLORS and has its own coloring system. On cygwin, however, exa is not available and I noticed that the colors were missind; and indeed, on systems with exa the colors are also missing if I run ls as \ls. |
||
---|---|---|
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 -