-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall-alacritty
executable file
·32 lines (32 loc) · 1.13 KB
/
install-alacritty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
source ~/strict.bash
set -x
# https://github.com/alacritty/alacritty/blob/master/INSTALL.md
~/install-rust
sudo apt-get install -y cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3
cd /tmp
if [ ! -d alacritty ];then
git clone --depth 1 https://github.com/alacritty/alacritty.git
fi
cd alacritty
git pull
rustup override set stable
rustup update stable
cargo build --release
if ! infocmp alacritty >/dev/null;then
sudo tic -xe alacritty,alacritty-direct extra/alacritty.info
fi
# Desktop Entry
sudo cp target/release/alacritty /usr/local/bin
sudo cp extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg
sudo desktop-file-install extra/linux/Alacritty.desktop
sudo update-desktop-database
# Manual Page
sudo mkdir -p /usr/local/share/man/man1
gzip -c extra/alacritty.man | sudo tee /usr/local/share/man/man1/alacritty.1.gz > /dev/null
gzip -c extra/alacritty-msg.man | sudo tee /usr/local/share/man/man1/alacritty-msg.1.gz > /dev/null
# Completions
fish <<- EOM
mkdir -p \$fish_complete_path[1]
cp extra/completions/alacritty.fish \$fish_complete_path[1]/alacritty.fish
EOM