bash-git-prompt
bash-git-prompt copied to clipboard
Is there an options not showing time?
Sure just use another of the Themes, like in the Readme described or write one yourself which deactivates Timedates.
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
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}"