dcat / swm

simple window manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tip for smallish prompt from your screenshot.

opened this issue · comments

I've seen on your swm screenshot that you have a small single line prompt, but no path.

It really looks nice! but no path. So I share this with you:

small prompt

In the beginning of the prompt, I have this:

statusline="\[\e[s\e[1;H\] \w  \[\e[90m\]$(git branch 2>/dev/null)
                                                                               \
                                                                  \[\e[u\e[1A\]"

The lot of spaces are to erase the content of the streen that may come. There should be a better way...

If it does not looks good to you, at least let me tell you that I adopted your prompt (will make it 100% like your soon)!