GithubHelp home page GithubHelp logo

Comments (3)

faho avatar faho commented on June 3, 2024 2

It shouldn't - env isn't syntactically special, and that's a good property to have. That's because env is just a binary on your system and it may or may not do what you want. Fish has no control over it. It's probably /usr/bin/env, and it probably runs commands - but there's no way for fish to be sure.

Good news is you can, in the upcoming release, make abbreviations for env and in command position:

abbr --command={env,} foo foobar

So I'll be closing this as a duplicate of #9411

from fish-shell.

krobelus avatar krobelus commented on June 3, 2024

I think env foo<space> should expand an abbrevation. I don't think "is in command position" is the ideal criteria but rather "is this supposed to be a shell command".
Of course this is a never-ending effort but in this case we have the information (abbrevations are suggested as completions)

from fish-shell.

zubin avatar zubin commented on June 3, 2024

I think env foo<space> should expand an abbrevation. I don't think "is in command position" is the ideal criteria but rather "is this supposed to be a shell command". Of course this is a never-ending effort but in this case we have the information (abbrevations are suggested as completions)

I'm inclined to agree: while the abbr --command={env,} foo foobar approach will work, it feels wrong to classify a regular command as a subcommand to env to make abbreviations work. Also it will be somewhat awkward to use that syntax when defining every abbreviation.

from fish-shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.