Comments (4)
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.
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.
I went with the [hsenv]
indicator, using square brackets to indicate a nameless sandbox. Does that work for you?
from hsenv.
Sure! Thanks! :)
from hsenv.
Related Issues (20)
- Couldn't parse package identifiers depends HOT 7
- Can't find modules in emacs buffer inside hsenv HOT 15
- On OS X, `sed -r` fails. HOT 1
- BSD sed command issue under OS X HOT 2
- Launching a sub shell in a modified environment instead of sourcing an activate file HOT 8
- possible future thing for nice sandbox handling HOT 4
- bad build state problem HOT 7
- Replace cURL with HTTP library for GHC tarball download HOT 4
- hsenv emacs mode sets GHC_PACKAGE_PATH instead of PACKAGE_DB_FOR_CABAL and PACKAGE_DB_FOR_GHC HOT 9
- "MyMonad" should be renamed to Hsenv HOT 3
- Documentation is stale HOT 5
- `hsenv --help` should show activate and deactivate info HOT 2
- hsenvwrapper? HOT 2
- add ghc 7.8 support! HOT 9
- OSX Hsenv fails to install
- Use MultiDexApplication HOT 1
- hsenv segfaults on OS X when using the --ghc flag HOT 5
- Strange package.cache issue with GHC 7.10.1 HOT 3
- Is this fork being maintained? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hsenv.