Right now the command-line prompt in the terminal can be quite long because it’s using the default <username>:<server>:<path> or something along those lines. For example:
Here, the jovyan username and the hostname (jupyter-rok-2eroskar-ontology-2dplayground-2d16a6d552) mean absolutely nothing to the user except that they clutter the limiter terminal real-estate. What if we made it something like
12345 here is the commit hash. We can limit the number of characters in any of those components to make something short, readable and informative. Any other suggestsions?
I use the bobthefish theme in fish to add useful information to my prompt:
The git info indicates whether I’m in a git repo, if so the branch (if other than master), untracked files by color, and whether the local is different from origin ("+" indicates that my local is ahead of origin)
Here is the same prompt on master:
I think we should use Powerline to do something similar in our interactive environments:
If that is too heavyweight, we can at least get some git information into the prompt:
Yes, this was my thinking as well but I thought maybe it would be confusing for people who don’t know about these fancy shell prompts. A stripped down powerline might be what we need though.
I agree with this simplification! I think it makes sense to see the project name & the commit hash seems particularly useful since the notebook was launched from the state at this commit hash, even if you commit extra stuff, so it’s a useful comparison hash to diff on
I think rather than providing a bunch of choices we can give a simple default that makes sense and document how to change it. This would then be something that the user would put in their renku-env repo on gitlab so their preferences are automatically injected at runtime.