Hacker News new | ask | show | jobs
by angra_mainyu 881 days ago
I have a tiny prompt I wrote that adds two important bits: git branch w/ status (if in a git repo) and venv (if any).

So it looks like:

    me@pop-os  09:19:20  files: 49
    ~> /path/to/cwd
    $
by default and in a git repo:

    me@pop-os  09:20:14  files: 18
    ~> ~/dev/work/projects/someproject
    [ git ~ feature/some-feature || Add: 0 Mod: 1 Del: 0 Unt: 0 ]
    $
in a venv:

    me@pop-os  09:20:14  files: 18  (venv: my-venv)
    ~> ~/dev/work/projects/someproject
    [ git ~ feature/some-feature || Add: 0 Mod: 1 Del: 0 Unt: 0 ]
    $

Note, these all use different font colors to be distinguishing.