Elvish

1 program Added 2025-10-22T09:57:39Z Model: openai/gpt-4o-miniTemp: 0.4 Evidence Report issue View issues
Aliases: elvish
Provenance: commit c51fa23fa1 · authored 2025-10-22T11:57:40+02:00 · model openai/gpt-4o-mini

Sources mentioning this language

4 sources · pl_id: pl/elvish
LLM (this repo) · 1PldbLinguistWikidata · Q111520563

Extensions claimed by this language

2 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.elvlinguistprimary9.5K files
.elvwikidataprimary9.5K files

Related languages

Fish (0.25)Glish (0.23)Deadfish (0.19)eForth (0.17)Bash (0.15)

LLM-contributed programs

Elvish Hello World

Provenance: commit c51fa23fa1 · authored 2025-10-22T11:57:40+02:00 · model openai/gpt-4o-mini · Temp 0.4
code.elv · license: MIT · added: 2025-10-22T09:57:39Z
echo 'Hello, World!'

Real programs from Software Heritage

1 sample mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
eval.d.elv · 1877 B · ext .elv · seen 86× in SWH
via unique-primary
swh:1:cnt:4a5381e4988a27da76108455ffa2ca5f5ed7d2c8;origin=https://github.com/elves/elvish;anchor=swh:1:rev:22e8a892fd9a3955fbf5f79d85198ca1648ce028;path=/pkg/eval/eval.d.elv
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
#//skip-test
# A list of functions to run after changing directory. These functions are always
# called with directory to change it, which might be a relative path. The
# following example also shows `$before-chdir`:
#
# ```elvish-transcript
# ~> set before-chdir = [{|dir| echo "Going to change to "$dir", pwd is "$pwd }]
# ~> set after-chdir = [{|dir| echo "Changed to "$dir", pwd is "$pwd }]
# ~> cd /usr
# Going to change to /usr, pwd is /Users/xiaq
# Changed to /usr, pwd is /usr
# /usr> cd local
# Going to change to local, pwd is /usr
# Changed to local, pwd is /usr/local
# /usr/local>
# ```
#
# **Note**: The use of `echo` above is for illustrative purposes. When Elvish
# is used interactively, the working directory may be changed in location mode
# or navigation mode, and outputs from `echo` can garble the terminal. If you
# are writing a plugin that works with the interactive mode, it's better to use
# [`edit:notify`](edit.html#edit:notify).
#
# See also [`$before-chdir`]().
var after-chdir

# A list of functions to run before changing directory. These functions are always
# called with the new working directory.
#
# See also [`$after-chdir`]().
var before-chdir

# A list of functions to run before Elvish exits.
var before-exit

# Number of background jobs.
var num-bg-jobs

# Whether to notify success of background jobs, defaulting to `$true`.
#
# Failures of background jobs are always notified.
var notify-bg-job-success

#//skip-test
#// The test framework hardcodes value out indicators.
# A string put before value outputs (such as those of `put`). Defaults to
# `'▶ '`. Example:
#
# ```elvish-transcript
# ~> put lorem ipsum
# ▶ lorem
# ▶ ipsum
# ~> set value-out-indicator = 'val> '
# ~> put lorem ipsum
# val> lorem
# val> ipsum
# ```
#
# Note that you almost always want some trailing whitespace for readability.
var value-out-indicator

Contribute — propose a file extension

Tell us where to find evidence about Elvish (mapped to pl/elvish). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Elvish/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Elsa Elvish Transcript →