feat(.oh-my-zsh/custom/spy4x.zsh-theme): add timestamp as a prefix

This commit is contained in:
Anton Shubin 2019-07-29 12:46:10 +03:00 committed by GitHub
parent 97277e7e9a
commit e6cb7e55f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,10 @@
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" 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 current_dir='%{$terminfo[bold]$fg[green]%}%~%{$reset_color%}'
local git_branch='$(git_prompt_info)%{$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%} local firebase_project=%{$fg[cyan]%}'$(node ~/.oh-my-zsh/custom/getFirebaseProject.js $(pwd))'%{$reset_color%}
PROMPT="${current_dir} ${firebase_project} ${git_branch} PROMPT="${timestamp} ${current_dir} ${firebase_project} ${git_branch}
$ " $ "
RPS1="${return_code}" RPS1="${return_code}"