summaryrefslogtreecommitdiffstats
path: root/README.md
blob: b9684c98328eb915801e29f9e1fa96c878e130c7 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
Alacritty
=========

[![Build Status](https://travis-ci.org/jwilm/alacritty.svg?branch=master)](https://travis-ci.org/jwilm/alacritty)

Alacritty the fastest terminal emulator in existence. Using the GPU for
rendering enables optimizations that simply aren't possible in other emulators.
Alacritty currently supports macOS and Linux, and Windows support is planned
before the 1.0 release.

<p align="center">
  <img width="600" alt="Alacritty running vim inside tmux" src="https://cloud.githubusercontent.com/assets/4285147/21585004/2ebd0288-d06c-11e6-95d3-4a2889dbbd6f.png">
</p>

## About

Alacritty is focused on simplicity and performance. The performance goal means
it should be faster than any other terminal emulator available. The simplicity
goal means that it doesn't have many features like tabs or scroll back as in
other terminals. Instead, it is expected that users of Alacritty make use of a
terminal multiplexer such as [`tmux`](https://github.com/tmux/tmux).

## Blog Posts

There is a forthcoming announcement post the week of Jan 2, 2017.

## Installation

The only supported installation method at this time is from source. Proper
installers will be added prior to the 1.0 release of Alacritty. This section
will walk you through how to build from source on both macOS and Ubuntu.

### Prerequisites

1. Install [`rustup.rs`](https://rustup.rs/)

2. Clone the source code:

   ```sh
   git clone https://github.com/jwilm/alacritty
   cd alacritty
   ```

3. Make sure you have the right Rust compiler installed. Alacritty is currently
   pinned to a certain Rust nightly, and the compiler/nightly dependencies are
   updated as needed. To install the correct compiler, run:

   ```sh
   rustup override set $(cat rustc-version)
   ```

#### Additional Linux Prerequisites

##### Ubuntu

On Ubuntu, you need a few extra libraries to build Alacritty. Here's an `apt`
command that should install all of them. If something is still found to be
missing, please open an issue.

```sh
apt-get install cmake libfreetype6-dev libfontconfig1-dev xclip
```

##### Other

If you build Alacritty on another Linux distribution, we would love some help
filling in this section of the README.

#### Additional macOS Prerequisites

It's possible `cmake` is needed on macOS to build Alacritty. If someone can
verify this and make a PR clarifying either way, it would be greatly
appreciated!

### Building

Once all the prerequisites are installed, compiling Alacritty should be easy:

```sh
cargo build --release
```

If all goes well, this should place a binary at `target/release/alacritty`.
**BEFORE YOU RUN IT:** Install the config file as described below; otherwise,
many things (such as arrow keys) would not work.

### Configuration

Although it's possible the default configuration would work on your system,
you'll probably end up wanting to customize it anyhow. There is an
`alacritty.yml` at the git repository root. Copy this to either
`$HOME/.alacritty.yml` or `$XDG_CONFIG_HOME/alacritty.yml` and run Alacritty.

Many configuration options will take effect immediately upon saving changes to
the config file. The only exception is the `font` and `dpi` section which
requires Alacritty to be restarted. For further explanation of the config file,
please consult the comments in the default config file.

## Issues (known, unknown, feature requests, etc)

If you run into a problem with Alacritty, please file an issue. If you've got a
feature request, feel free to ask about it. Keep in mind that Alacritty is very
much not looking to be a feature-rich terminal emulator with all sorts of bells
and widgets. It's primarily a cross-platform, blazing fast `tmux` renderer that
Just Works.

## FAQ

- _Is it really the fastest terminal emulator?_ In the terminals I've
  benchmarked against, alacritty is either faster, WAY faster, or at least
  neutral. There are no benchmarks in which I've found Alacritty to be slower.
- _It's not fast! Why?_ There's a known bug affecting some versions of
  Mesa/libxcb where calls to glClear take an insanely long time. If it's not
  that, there's probably another bug. I'd be happy to look at the issue if you
  can provide some profiling information (wall time and otherwise).
- _macOS + tmux + vim is slow! I thought this was supposed to be fast!_ This
  appears to be an issue outside of terminal emulators; either macOS has an IPC
  performance issue, or either tmux or vim (or both) have a bug. This same issue
  can be seen in `iTerm2` and `Terminal.app`. I've found that if tmux is running
  on another machine which is connected to Alacritty via SSH, this issue
  disappears. Actual throughput and rendering performance are still better in
  Alacritty.
- _Is wayland supported?_ Not yet. Alacritty is currently on a fork of glutin
  that needs some updates to work with Wayland.
- _When will Windows support be available?_ When someone has time to work on it.
  Contributors would be welcomed :).
- _My arrow keys don't work_ It sounds like you deleted some key bindings from
  your config file. Please reference the default config file to restore them.


## License

Alacritty is released under the [Apache License, Version 2.0].

[Apache License, Version 2.0]: https://github.com/jwilm/alacritty/blob/readme/LICENSE-APACHE