chezmoi/dot_config/kitty/kitty-themes/dot_tools/executable_generate_conf.sh
kjuulh 9cedfd61f6
feat: chezmoi
Signed-off-by: kjuulh <contact@kjuulh.io>
2023-07-24 12:31:59 +02:00

11 lines
392 B
Bash

#!/usr/bin/env bash
find ~/github/macos-terminal-themes/schemes/ -name "*.terminal" -print0 | while read -d $'\0' -r file; do
filename=`basename "$file"`
without_ext=${filename%.*}
removed_spaces=${without_ext// /_}
# output_filename=`echo ${removed_spaces} | tr '[:upper:]' '[:lower:]'`
echo ${removed_spaces}.conf
./convert_conf.swift "$file" > ./themes/${removed_spaces}.conf
done