Press Ctr + Shift + j to open devtools console in crostini terminal.
Paste this to use Jetbrais Mono with ligatures:
term_.prefs_.set('font-family', 'JetBrains Mono Nerd Font, monospace');
term_.prefs_.set('user-css-text', '@font-face {font-family: "JetBrains Mono Nerd Font"; src: url("https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/JetBrainsMono/Ligatures/Regular/JetBrainsMonoNerdFont-Regular.ttf"); font-weight: normal; font-style: normal;} x-row {text-rendering: optimizeLegibility;font-variant-ligatures: normal;}')- To change font, replace url path to raw .ttf file with your font in Nerd Fonts repository
- To disable ligatures, delete
x-rowclass inuser-css-textparameter
@adm304 Make sure you are using the console inside the terminal app itself. You can also find it here
chrome-untrusted://terminal/html/terminal.html. If you're using the latest version of ChromeOS, unfortunately this won't work as you can't open the js console inside the terminal for now.