Open In App

How to Install and Use Alacritty Terminal Emulator in Linux?

Improve
Improve
Like Article
Like
Save
Share
Report

Alacritty is a cross-platform terminal emulator with GPU acceleration. It’s a terminal emulator for OpenGL written in the Rust programming language. Alacritty is the fastest and lightest Terminal emulator in nature, thanks to its OpenGL renderer and high throughput parser. Alacritty Terminal emulator does not have many fancy features like tabs and splits that you find in other Terminal emulators, such as Terminology since it was designed with simplicity and efficiency in mind. It runs on a variety of platforms, including Linux, BSD, macOS, and Windows.

Some Linux distributions have Alacritty binaries in the repository; if not, you can install it using the commands below on your specific distribution.

$ sudo add-apt-repository ppa:mmstick76/alacritty
Alacritty A Fastest Terminal Emulator for Linux

Adding repository

Now update system sources:

Alacritty A Fastest Terminal Emulator for Linux

Update system sources

Now install Alacritty using the below command:

Alacritty A Fastest Terminal Emulator for Linux

Installing Alacritty

Installing Dependency Packages

To install Alacritty, you’ll need the most recent stable Rust compiler. So, first, use a rustup installer script to install the Rust programming language and then follow the on-screen instructions.

sudo curl https://sh.rustup.rs -sSf | sh

If you’d like to build a local version manually, you need a few extra libraries to build Alacritty. Here’s an apt command that should install all of them.

Alacritty A Fastest Terminal Emulator for Linux

Installing Dependency

Building Alacritty from source

We’ll go through the steps below to create Alacritty from the ground up. Before we can compile, we must first clone the Alacritty source code and change it to the following directory:

Change directory to your preferred directory

cd Downloads

Alacritty A Fastest Terminal Emulator for Linux

Now clone GitHub repository into your directory:

git clone https://github.com/jwilm/alacritty.git

Alacritty A Fastest Terminal Emulator for Linux

Now Alacritty folder should be created, change directory into Alacritty folder:

cd alacritty

Alacritty A Fastest Terminal Emulator for Linux

To build the Alacritty terminal emulator on Linux, run the command below while still in the Alacritty directory.

cargo build --release

Alacritty A Fastest Terminal Emulator for Linux

Set desktop entry

For adding applications to device menus, most Linux and BSD distributions support desktop entries. The commands below will install the Alacritty desktop entry:

sudo cp target/release/alacritty /usr/local/bin

Alacritty A Fastest Terminal Emulator for Linux

Adding a logo to the desktop icon:

sudo cp extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg

Alacritty A Fastest Terminal Emulator for Linux

Adding desktop entry:

sudo desktop-file-install extra/linux/Alacritty.desktop

Alacritty A Fastest Terminal Emulator for Linux

Updating desktop database:

sudo update-desktop-database

Alacritty A Fastest Terminal Emulator for Linux

Now, we install manual pages:

sudo mkdir -p /usr/local/share/man/man1

Alacritty A Fastest Terminal Emulator for Linux

gzip -c extra/alacritty.man | sudo tee /usr/local/share/man/man1/alacritty.1.gz > /dev/null

Alacritty A Fastest Terminal Emulator for Linux

Configure Alacritty Shell Completions

To add shell completions for Bash, we run the below commands:

echo "source $(pwd)/extra/completions/alacritty.bash" >> ~/.bashrc

Alacritty A Fastest Terminal Emulator for Linux

Now you should see the Alacritty desktop shortcut:

Alacritty A Fastest Terminal Emulator for Linux

That’s what there is to it. You’ve completed the installation and setup of the Alacritty terminal emulator on Linux.



Last Updated : 05 Oct, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads