🌈 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.
alacritty-themes: A CLI tool to set themes for alacritty terminal
Rajasegar Chandran ・ Jun 20 '20
Install
Install the alacritty-themes
cli globally with Node.js package managers like npm, yarn or pnpm
npm i -g alacritty-themes
With yarn
yarn add --global alacritty-themes
With pnpm
pnpm add --global alacritty-themes
If you are using npx
you don't have to install the package:
npx alacritty-themes
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
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
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)