Powerful scripting language & versatile interactive shell add sylixos support.
Go to file
Qi Xiao 27e2df9394 Remove edit:-dump-buf.
This used to be used for taking ttyshots but is now obsolete.
2022-09-11 15:33:59 +01:00
.github/workflows .github: Bump Go to 1.19.x. 2022-08-08 12:43:29 +01:00
.vscode
cmd
pkg Remove edit:-dump-buf. 2022-09-11 15:33:59 +01:00
tools
vscode vscode: Declare Elvish in Markdown as a language. 2022-08-13 10:59:22 +01:00
website Correct the documentation for the try command 2022-08-29 12:30:39 +01:00
.cirrus.yml
.codecov.yml
.codespellrc vscode: Bundle extension before publishing. 2022-08-10 23:12:30 +01:00
.dockerignore
.gitattributes
.gitignore
.gitlab-ci.yml
.prettierrc
0.19.0-release-notes.md Fixup for #1588 2022-08-29 12:29:24 +01:00
CONTRIBUTING.md Upgrade prettier to 2.7.1. 2022-06-23 20:32:11 +01:00
Dockerfile
go.mod
go.sum
LICENSE
Makefile
PACKAGING.md
README.md Add IRC channel back to README.md. 2022-07-31 11:09:31 +01:00
SECURITY.md

Elvish: Expressive Programming Language + Versatile Interactive Shell

CI status FreeBSD & gccgo test status Test Coverage Go Reference Packaging status Twitter

Elvish is an expressive programming language and a versatile interactive shell, combined into one seamless package. It runs on Linux, BSDs, macOS and Windows.

Despite its pre-1.0 status, it is already suitable for most daily interactive use.

User groups (all connected thanks to Matrix): Gitter Telegram Group #elvish on libera.chat #users:elv.sh

Documentation

Documentation for Elvish lives on the official website https://elv.sh, including:

The source for the documentation is in the website directory.

Building Elvish

Most users do not need to build Elvish from source. Prebuilt binaries for the latest commit are provided for Linux amd64, macOS amd64, macOS arm64, Windows amd64 and many other platforms.

To build Elvish from source, you need

  • A supported OS: Linux, {Free,Net,Open}BSD, macOS, or Windows 10.

    NOTE: Windows 10 support is experimental.

  • Go >= 1.18.

To build Elvish from source, follow these steps:

# 1. Start from any directory you want to store Elvish's source code
# 2. Clone the Git repository
git clone https://github.com/elves/elvish
# 3. Change into the repository
cd elvish
# 4. Build and install Elvish
make get

This will install Elvish to $GOBIN, which defaults to $GOPATH/bin or ~/go/bin if $GOPATH is not set.

To install it elsewhere, override ELVISH_MAKE_BIN in the make command:

make get ELVISH_MAKE_BIN=./elvish # Install to the repo root
make get ELVISH_MAKE_BIN=/usr/local/bin/elvish # Install to /usr/local/bin

Experimental plugin support

Elvish has experimental support for building and importing plugins, modules written in Go.

However, since plugin support relies on dynamic linking, it is not enabled in the official prebuilt binaries. You need to build Elvish from source, and make sure that CGo is enabled:

make get CGO_ENABLED=1

To build a plugin, see this example.

Packaging Elvish

See PACKAGING.md for notes for packagers.

Contributing to Elvish

See CONTRIBUTING.md for notes for contributors.