Questions tagged [elvish]

Elvish is a modern shell (not POSIX compatible) and scripting language. Use the `elvish` tag when you have questions about Elvish syntax, behavior, or need advice on how to customize elvish interactive behavior.

Elvish is a friendly interactive shell and an expressive programming language. It runs on Linux, BSDs, macOS and Windows.

Official website: elv.sh

4 questions
2
votes
1 answer

Why is direnv failing to read my zsh/fish/elvish/tcsh script?

When attempting to evaluate a .envrc file I get the error "emulate: command not found" or "cd: -q: invalid option" or any number of various possible errors in my completely valid zsh/fish/elivsh/tcsh script.
OmnipotentEntity
  • 16,531
  • 6
  • 62
  • 96
1
vote
1 answer

How to process lines from external process in elvish?

Original problem: I want to extract information from (string) lines, produced by some process. It can be done by processing the lines one by one. Extracted data should be saved in several collections (lists? maps? whatever...) The lines to process…
Tomek
  • 13
  • 3
1
vote
1 answer

How to print prompt content for test purpose in Elvish shell?

related: https://github.com/elves/elvish/issues/827 I'm on a prompt implementation and would like to test I correctly support elvish. I already do that for other shells by invoking their prompt variable/method, e.g. bash bash -ci 'echo…
Édouard Lopez
  • 40,270
  • 28
  • 126
  • 178
0
votes
2 answers

Extending a list in Elvish shell (modifying $PATH)

By default Elvish (macOS, Homebrew) has a basic PATH definition: ~> echo $paths [/usr/bin /bin /usr/sbin /sbin] I'd like to add /usr/local/bin and /usr/local/sbin items to it, but without writing literals from scratch like set paths = [/usr/bin…
Nikolaj Š.
  • 1,457
  • 1
  • 10
  • 17