13 lines
533 B
Bash
13 lines
533 B
Bash
local return_code='%(?..%{$fg[red]%}%? ↵%{$reset_color%})'
|
|
local timestamp='%{$fg[yellow]%}[%D{%L:%M:%S}]'
|
|
local current_dir='%{$terminfo[bold]$fg[green]%}%~%{$reset_color%}'
|
|
local git_branch='$(git_prompt_info)%{$reset_color%}'
|
|
local firebase_project=%{$fg[cyan]%}'$(node ~/.oh-my-zsh/custom/getFirebaseProject.js $(pwd))'%{$reset_color%}
|
|
|
|
PROMPT="${timestamp} ${current_dir} ${firebase_project} ${git_branch}
|
|
$ "
|
|
RPS1="${return_code}"
|
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}"
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|