DEV Community

Rajasegar Chandran
Rajasegar Chandran

Posted on

alacritty-themes 3.0 released with Live Previews

🌈 alacritty-themes 🍭

In this post, we are going to take a look at the changes made in the latest release 3.0 of alacritty-themes. If you want to take a look at the launch blog post for alacritty-themes, you can find it here.

Install

Install the alacritty-themes cli globally with Node.js package managers like npm, yarn or pnpm

npm i -g alacritty-themes
Enter fullscreen mode Exit fullscreen mode

With yarn

yarn add --global alacritty-themes
Enter fullscreen mode Exit fullscreen mode

With pnpm

pnpm add --global alacritty-themes
Enter fullscreen mode Exit fullscreen mode

If you are using npx you don't have to install the package:

npx alacritty-themes
Enter fullscreen mode Exit fullscreen mode

Live Previews

This release features one of the most asked functionalities called the Live Previews, which allows us to preview a particular theme before applying it. You can scroll up and down using the arrow keys and the theme will be automatically previewed inside the terminal window. Once you are happy with a theme, you can press Enter to apply them or Ctrl-C to cancel.

Command line flags for Themes

With the new release you can directly apply a theme if you know the theme name without going through all the hassle of searching for the themes using the command line option.

alacritty-themes Dracula
Enter fullscreen mode Exit fullscreen mode

Create alacritty.yml config file

The tool requires a config file to be present in your $HOME directory called alacritty.yml. Usually it will be somewhere like ~/.config/alacritty/alacritty.yml. If you don't have one, you can now create it using the cli by using the --create or -c option with the cli to do the same.

alacritty-themes --create
Enter fullscreen mode Exit fullscreen mode

Other changes

We have replaced inquirer with prompts as the command-line prompt in this release. prompts is a lightweight, beautiful and user-friendly interactive prompts library for your cli programs. It has got a lot of inbuilt prompt types for autocomplete, multiselect and so on.

So what are you waiting for, go install alacritty, give alacritty-themes a try and spice up your terminal. I am pretty sure, once you started using alacritty as your terminal, you won't go back for anything else. Please let us know your feedback/queries in the comments section.

Top comments (0)