1
0
Fork 0
dotfiles/alacritty/install
Jeremy Kaplan be5708c8c7 Automate switching between day/night color schemes
This sets up individual light and dark color scheme files for vim/neovim
and alacritty, adds a script (`set-color`) for placing them, and
includes two no-arg scripts for later keybinding (`day-mode` and
`night-mode`).

Thanks to this blog post for the idea to `cat` the YAML into place:
https://shuheikagawa.com/blog/2020/02/14/switching-colorschemes-of-vim-and-alacritty/

TIL YAML is concatenative!
2021-04-15 23:03:28 -07:00

12 lines
225 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
inputs=(
"${CURDIR}/base.yml"
"${CURDIR}/colors.yml"
)
output="${CURDIR}/alacritty.yml"
cat "${inputs[@]}" > "${output}"