mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 18:07:51 +08:00
Add "e" ns as yet another alias of "external".
This commit is contained in:
parent
a3ae232585
commit
c3455d9a1c
|
@ -299,7 +299,7 @@ func (ev *Evaler) Global() map[string]Variable {
|
|||
// ResolveVar resolves a variable. When the variable cannot be found, nil is
|
||||
// returned.
|
||||
func (ec *EvalCtx) ResolveVar(ns, name string) Variable {
|
||||
if ns == "env" || ns == "external" || ns == "E" {
|
||||
if ns == "env" || ns == "external" || ns == "E" || ns == "e" {
|
||||
if strings.HasPrefix(name, FnPrefix) {
|
||||
return NewRoVariable(ExternalCmd{name[len(FnPrefix):]})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user