Code Monkey home page Code Monkey logo

Comments (4)

tmhedberg avatar tmhedberg commented on September 13, 2024

I've thought about this previously, but haven't done anything about it yet because I wasn't sure of the best approach.

For one thing, since d4e92c5, you can pass --no-ps1-indicator to your initial hsenv command to omit the prompt indicator altogether. What if we just do this automatically if no name is specified, i.e. only show the indicator if there is an actual name to be shown?

I'm also not opposed to some kind of default indicator that shows up if you haven't set a name for your sandbox, but I don't like defaulting to (hsenv) because there's no way to distinguish that from an actual sandbox called hsenv. That's probably a silly thing to worry about, but I think it would be better to disambiguate it somehow, say, by using square brackets instead of parentheses or something like that.

Any thoughts on these options?

from hsenv.

adinapoli avatar adinapoli commented on September 13, 2024

Uhm, I have to be honest, I love my indicator, it's the only visual aid that helps me not doing something stupid like 'cabal install myPackageWhichWillBringMeToCabalHell' :D
It's too easy to forget if you are or not in a sandbox environment, so definitely +1 for keeping the visual indicator!
I agree that someone could create a sandbox with the name "hsenv":
Why why don't use simply a randomly generated number using say, for example randomR?
This way we still keep our visual indicator, making it a bit more prominent, still avoiding clashing :)

from hsenv.

tmhedberg avatar tmhedberg commented on September 13, 2024

I went with the [hsenv] indicator, using square brackets to indicate a nameless sandbox. Does that work for you?

from hsenv.

adinapoli avatar adinapoli commented on September 13, 2024

Sure! Thanks! :)

from hsenv.

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.