imochoa / dotfiles

collection of the setting that I like as well as some scripts to automate the post-install setup process
MIT License
0 stars 0 forks source link

alacritty #67

Open imochoa opened 3 years ago

imochoa commented 3 years ago

INSTALL

cd /opt
git clone https://github.com/alacritty/alacritty.git alacritty
sudo chown -R $USER:$USER alacritty/
cd alacritty
apt-get install -y cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev python3
apt-get install -y cargo ccd2iso gzip
cargo build --release
sudo update-alternatives --install /usr/local/bin/alacritty x-terminal-emulator /opt/alacritty/target/release/alacritty 100

# install the desktop entry for Alacritty
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

TODO

### Bash completions

To install the completions for bash, you can `source` the `extra/completions/alacritty.bash` file
in your `~/.bashrc` file.

If you do not plan to delete the source folder of alacritty, you can run

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

Otherwise you can copy it to the `~/.bash_completion` folder and source it from there:

mkdir -p ~/.bash_completion
cp extra/completions/alacritty.bash ~/.bash_completion/alacritty
echo "source ~/.bash_completion/alacritty" >> ~/.bashrc

## Terminfo

The terminfo database contains entries describing the terminal
emulator's capabilities. Programs need these in order to function
properly.

Alacritty should work with the standard `xterm-256color` definition,
but to allow programs to make best use of alacritty's capabilities,
use its own terminfo definition instead.

Unless the user has set the `TERM` environment variable in the
alacritty configuration, the `alacritty` terminfo definition will be
used if it has been installed. If not, then `xterm-256color` is used
instead.

To install alacritty's terminfo entry globally:

sudo tic -xe alacritty,alacritty-direct extra/alacritty.info