eendroroy / alacritty-theme

Collection of Alacritty color schemes
Apache License 2.0
1.88k stars 234 forks source link

alacritty supports file importing #43

Closed adgross closed 2 years ago

adgross commented 2 years ago

Mention in README.md that we can directly import color themes using the import section in alacritty.yml This can makes it easier to change colors than using a big scheme file, or changing the colors section.

Example:

import:
  #- ~/.config/alacritty/alacritty-theme/themes/afterglow.yaml
  #- ~/.config/alacritty/alacritty-theme/themes/aye.yaml
  #- ~/.config/alacritty/alacritty-theme/themes/breeze.yaml
  #- ~/.config/alacritty/alacritty-theme/themes/Cobalt2.yaml
  #- ~/.config/alacritty/alacritty-theme/themes/gruvbox_dark.yaml
  - ~/.config/alacritty/alacritty-theme/themes/iterm.yaml
eggplants commented 2 years ago
mkdir -p ~/.config/alacritty
curl -o- https://codeload.github.com/eendroroy/alacritty-theme/tar.gz/refs/heads/master |
  tar xzf - alacritty-theme-master/themes
mv alacritty-theme-master ~/.config/alacritty
echo "import:" >> ~/.config/alacritty/alacritty.yml
find ~/.config/alacritty/alacritty-theme-master/themes -type f -name '*ml' |
  sed 's/^/  #- /' >> ~/.config/alacritty/alacritty.yml