arialdomartini / oh-my-git

An opinionated git prompt for bash and zsh
MIT License
3.65k stars 287 forks source link

How can I customize old prompt when at a non git directory #86

Open WitzHsiao opened 9 years ago

WitzHsiao commented 9 years ago

I wanna customize my old prompt or use another theme when at a non git directory. How can I do this? thanks

Sgiath commented 9 years ago

Edit omg_ungit_prompt variable for different prompt outside the GIT repo (for example my value is \w •). Edit omg_second_line variable for different second line in GIT repository (for example my value is \W •). Both variables can be found in promt.sh on lines 7 and 8. Simply delete $PS1 (the default prompt) and write there your own custom settings (in quotes). You can use this tool http://ezprompt.net/ for customizing your prompt (use only the part in quotes).

WitzHsiao commented 9 years ago

@Sgiath thanks for your help, will try it!

WitzHsiao commented 9 years ago

Can I use calculated function for omg_ungit_prompt?