bash-git-prompt icon indicating copy to clipboard operation
bash-git-prompt copied to clipboard

Is there an options not showing time?

Open dolmens opened this issue 5 years ago • 3 comments

dolmens avatar Apr 08 '19 09:04 dolmens

Sure just use another of the Themes, like in the Readme described or write one yourself which deactivates Timedates.

NorbertRonecker avatar Apr 08 '19 11:04 NorbertRonecker

There are "Single_line"-Themes which will only use a single line. Find them with

git_prompt_list_themes | grep Single

I use Single_line_Ubuntu... it still shows the time, but will only use a single line. To temporarly switch to it, issue a:

GIT_PROMPT_THEME=Single_line_Ubuntu

To make it permanent across reboots. Add this command to your ~/.bashrc

PJaros avatar Sep 07 '19 13:09 PJaros

Create a custom prompt:

git_prompt_make_custom_theme Single_line_Ubuntu # You may use any existing theme name as the base theme

Then change the line in ~/.git-prompt-colors.sh:

  GIT_PROMPT_START_USER="_LAST_COMMAND_INDICATOR_ ${White}${Time12a}${ResetColor} ${Cyan}${PathShort}${ResetColor}"

to:

  GIT_PROMPT_START_USER="_LAST_COMMAND_INDICATOR_ ${Cyan}${PathShort}${ResetColor}"

gldraphael avatar Jan 10 '20 08:01 gldraphael