alacritty/build.sh

19 lines
245 B
Bash
Executable File

#!/bin/sh
set -e
SRC_DIR=./src
OUT_FILE=./alacritty.toml
mode="${1:-light}"
case "$mode" in
light|dark) ;;
*)
echo "Usage: $0 [light|dark]" >&2
exit 1
;;
esac
theme="$SRC_DIR/$mode.toml"
cat "$SRC_DIR/base.toml" "$theme" > "$OUT_FILE"