Skip to content

Instantly share code, notes, and snippets.

@dangh
Last active November 30, 2021 11:30
Show Gist options
  • Save dangh/d2ba29efbc065491f67a6b7a743cf53d to your computer and use it in GitHub Desktop.
Save dangh/d2ba29efbc065491f67a6b7a743cf53d to your computer and use it in GitHub Desktop.
# install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
export PATH="$HOME/.cargo/bin:$PATH"
# clone crossfont and alacritty
git clone --depth 1 https://github.com/alacritty/crossfont.git
git clone --depth 1 https://github.com/alacritty/alacritty.git
# patching
sed -i '' -E 's/(set_allows_font_smoothing|set_should_smooth_fonts)\(true\)/\1(!use_thin_strokes)/' crossfont/src/darwin/mod.rs
sed -i '' -E 's/(crossfont = \{ )version = "[^"]+"/\1path = "\.\.\/\.\.\/crossfont"/' alacritty/alacritty/Cargo.toml
# build and mount dmg
cd alacritty
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment