5

Exa and icon fonts in Arch Linux

 1 year ago
source link: https://www.lorenzobettini.it/2023/02/exa-and-icon-fonts-in-arch-linux/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Exa and icon fonts in Arch Linux

I finally took the time to try exa, “a modern replacement for ls”.

This is a brief article for installing exa in Arch Linux with an additional package for the icon fonts (in a few installations, boxes were shown instead of icons, that’s why I’m writing this blog article, hoping to save you some time).

Installing exa in Arch is just a matter of running:

sudo pacman -S exa

However, you need a “Nerd” font to get the icon symbols. This is the one I install:

sudo pacman -S ttf-arimo-nerd

In EndeavourOS KDE, this should already be installed. I seem to understand that this is not the case for EndeavourOS GNOME. If these fonts are not installed, you can install them with the command above and make sure to reboot.

The output is excellent, and I aliased many of my previous ls commands to exa:

alias l='exa -lah --color=always --group-directories-first --icons' # with headers
alias la='exa -al --color=always --group-directories-first --icons'  # all files and dirs
alias ll='exa -l --color=always --group-directories-first --icons'  # long format

This is the beautiful colored output you get, and note the icons for directories and known files types in Gnome (in particular, a “cup of coffee” for Java files):

exa-icons-gnome.png?resize=625%2C466&ssl=1

The same holds for KDE:

exa-icons-kde.png?resize=625%2C418&ssl=1

I also have another alias for the tree output of exa:

alias lt='exa -aT --color=always --group-directories-first --icons' # tree listing

And this is the output:

exa-icons-lt.png?resize=573%2C798&ssl=1

Note the “–git-ignore” command line argument to ask exa to skip all the files that match the patterns in the current “.gitignore” file.

Beautiful, isn’t it? 🙂

Like this:

Loading...

Related


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK