arialdomartini / oh-my-git

An opinionated git prompt for bash and zsh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how remove time and username@hostname ?

MosqutitoLiu opened this issue · comments

can you help me please? tell me how remove time and username@hostname ?

截屏2021-06-17 上午11 00 52

Hi!
You can edit omg_second_line which defaults to

: ${omg_second_line:=$PS1}

Just tell me if it works!

Hi!
You can edit omg_second_line which defaults to

: ${omg_second_line:=$PS1}

Just tell me if it works!

it doesn't work .

My fault!
I’ll be far from the keyboard for a couple of days: I’ll give you a working answer as soon as back!

My fault.
It's RPROMPT

Just add a

RPROMPT="whatever"

in your startup script.

The default value is:

%{$reset_color%}%T %{$fg_bold[white]%} %n@%m%{$reset_color%}