mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 12:42:02 +03:00
[ doc ] instructions for activating tab completion
This commit is contained in:
parent
8d4c95512c
commit
2a57f1ca33
33
INSTALL.md
33
INSTALL.md
@ -99,6 +99,31 @@ The API will only work if you've completed the self-hosting step, step 4, since
|
||||
the intermediate code versions need to be consistent throughout. Otherwise, you
|
||||
will get an `Error in TTC: TTC data is in an older format` error.
|
||||
|
||||
### 7: (Optional) Shell Auto-completion
|
||||
|
||||
Idris2 supports tab auto-completion for Bash-like shells.
|
||||
|
||||
#### For Bash Users
|
||||
|
||||
From within bash, run the following command:
|
||||
|
||||
```sh
|
||||
eval "$(idris2 --bash-completion-script idris2)"
|
||||
```
|
||||
|
||||
You can also add it to your `.bashrc` file.
|
||||
|
||||
#### For ZSH Users
|
||||
From within ZSH, run the following commands:
|
||||
|
||||
```sh
|
||||
autoload -U +X compinit && compinit
|
||||
autoload -U +X bashcompinit && bashcompinit
|
||||
eval "$(idris2 --bash-completion-script idris2)"
|
||||
```
|
||||
|
||||
You can also add them to your `.zshrc` file.
|
||||
|
||||
### Troubleshooting
|
||||
|
||||
If you get the message `variable make-thread-parameter is not bound` while
|
||||
@ -113,20 +138,26 @@ Racket, then your copy of Chez Scheme was built without thread support. Pass
|
||||
If you are Homebrew user you can install Idris 2 together with all the requirements
|
||||
by running the following command:
|
||||
|
||||
```sh
|
||||
brew install idris2
|
||||
```
|
||||
|
||||
### Installing from nix
|
||||
|
||||
If you are a [nix](https://nixos.org/features.html) user you can install Idris 2 together with all the requirements
|
||||
by running the following command:
|
||||
|
||||
```sh
|
||||
nix-env -i idris2
|
||||
```
|
||||
|
||||
### Install from nix flakes
|
||||
|
||||
If you are a [nix flakes](https://nixos.wiki/wiki/Flakes) user you can install Idris 2 together with all the requirements by running the following command:
|
||||
|
||||
```sh
|
||||
nix profile install github:idris-lang/Idris2
|
||||
```
|
||||
|
||||
## Running in text editor
|
||||
|
||||
@ -134,4 +165,6 @@ If you are a [nix flakes](https://nixos.wiki/wiki/Flakes) user you can install I
|
||||
|
||||
If you are a [nix flakes](https://nixos.wiki/wiki/Flakes) user you can run Idris 2 in emacs by running the following command:
|
||||
|
||||
```sh
|
||||
nix run idris-lang/Idris2#emacs-with-idris idrisCode.idr
|
||||
```
|
||||
|
@ -5,7 +5,6 @@ import Core.Directory
|
||||
import Core.Metadata
|
||||
import Core.Options
|
||||
import Core.Unify
|
||||
import Libraries.System.Directory.Tree
|
||||
import Libraries.Utils.Path
|
||||
import Libraries.Data.List.Extra
|
||||
import Libraries.Data.List1 as Lib
|
||||
|
Loading…
Reference in New Issue
Block a user