Powerful scripting language & versatile interactive shell add sylixos support.
Go to file
2024-02-10 16:19:20 +00:00
.github/workflows .github: Invert the "old-go" matrix parameter, and omit it from job name. 2024-02-10 16:19:20 +00:00
.vscode Add VS Code extension. 2022-06-05 12:19:18 +01:00
cmd pkg/diff: Take string inputs, and add DiffNoHeader. 2024-01-30 20:15:58 +00:00
pkg Remove support for ~/.elvish. 2024-02-10 16:07:04 +00:00
tools tools/buildall.sh: Make zip file reproducible by fixing the mtime. 2024-02-06 15:01:11 +01:00
vscode vscode: Simplify .gitignore. 2024-01-31 09:48:56 +00:00
website Remove support for ~/.elvish. 2024-02-10 16:07:04 +00:00
.cirrus.yml .cirrus.yml: Install coreutils in the build binaries workflow. 2024-02-06 15:34:41 +01:00
.codecov.yml .codecov.yml: Exclude commands for manual testing. 2022-11-13 01:48:18 +00:00
.codespellrc Manually cherry-pick codespell changes from #1613. 2022-10-23 23:57:01 +01:00
.dockerignore Update .dockerignore. 2018-10-16 10:19:20 +01:00
.gitattributes Use .gitattributes to filter go sources through goimports 2014-02-10 12:41:16 +08:00
.gitignore Add VS Code extension. 2022-06-05 12:19:18 +01:00
0.20.0-release-notes.md 0.20.0-release-notes.md: Fix typo. 2024-02-06 14:24:37 +01:00
0.21.0-release-notes.md Remove support for ~/.elvish. 2024-02-10 16:07:04 +00:00
CONTRIBUTING.md CONTRIBUTING.md: Document how to mock dependencies. 2024-02-01 14:46:37 +00:00
Dockerfile Modernize Dockerfile. 2023-10-12 23:48:51 +02:00
go.mod Require Go >= 1.20, and bump CI environment versions. 2024-01-10 22:28:18 +00:00
go.sum Upgrade dependencies. 2024-01-09 13:45:32 +00:00
LICENSE LICENSE: Capitalize "Elvish" and fix punctuation. 2023-03-08 00:25:19 +00:00
Makefile Restructure check targets in Makefile. 2022-12-29 23:23:42 +00:00
PACKAGING.md PACKAGING.md: Fix language tags of code fences. 2022-04-09 21:30:09 +01:00
README.md pkg/diff: Take string inputs, and add DiffNoHeader. 2024-01-30 20:15:58 +00:00
SECURITY.md Add a security policy doc. 2021-09-22 00:24:03 +01:00

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.

License

All source files use the BSD 2-clause license (see LICENSE), except for the following:

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. Windows 10 support is experimental.

  • Go >= 1.20.

To build Elvish from source, run one of the following commands:

go install src.elv.sh/cmd/elvish@master # Install latest commit
go install src.elv.sh/cmd/elvish@latest # Install latest released version
go install src.elv.sh/cmd/elvish@v0.18.0 # Install a specific version

Controlling the installation location

The go install command installs Elvish to $GOBIN; the binary name is elvish. You can control the installation location by overriding $GOBIN, for example by prepending env GOBIN=... to the go install command.

If $GOBIN is not set, the installation location defaults to $GOPATH/bin, which in turn defaults to ~/go/bin if $GOPATH is also not set.

The installation directory is probably not in your OS's default $PATH. You should either either add it to $PATH, or manually copy the Elvish binary to a directory already in $PATH.

Building a variant

Elvish has several build variants with slightly different feature sets. For example, the withpprof build variant has profiling support.

These build variants are just alternative main packages. For example, to build the withpprof variant, run the following command (change the part after @ to get different versions):

go install src.elv.sh/cmd/withpprof/elvish@master

Building from a local source tree

If you are modifying Elvish's source code, you will want to clone Elvish's Git repository and build Elvish from the local source tree instead. To do this, run the following from the root of the source tree:

go install ./cmd/elvish

There is no need to specify a version like @master; when inside a source tree, go install will always use the whatever source code is present.

See CONTRIBUTING.md for more notes for contributors.

Building with experimental plugin support

Elvish has experimental support for building and importing plugins, modules written in Go. It relies on Go's plugin support, which is only available on a few platforms.

Plugin support requires building Elvish with cgo. The official prebuilt binaries are built without cgo for compatibility and reproducibility, but by default the Go toolchain builds with cgo enabled.

If you have built Elvish from source on a platform with plugin support, your Elvish build probably already supports plugins. To force cgo to be used when building Elvish, you can do the following:

env CGO_ENABLED=1 go install ./cmd/elvish

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.

Reporting security issues

See SECURITY.md for how to report security issues.