From e6cb7e55f328099df2da2217ac1d5e8c5d2d56b7 Mon Sep 17 00:00:00 2001 From: Anton Shubin <2spy4x@gmail.com> Date: Mon, 29 Jul 2019 12:46:10 +0300 Subject: [PATCH] feat(.oh-my-zsh/custom/spy4x.zsh-theme): add timestamp as a prefix --- .oh-my-zsh/custom/spy4x.zsh-theme | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.oh-my-zsh/custom/spy4x.zsh-theme b/.oh-my-zsh/custom/spy4x.zsh-theme index e9648a2..6d813f6 100644 --- a/.oh-my-zsh/custom/spy4x.zsh-theme +++ b/.oh-my-zsh/custom/spy4x.zsh-theme @@ -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 git_branch='$(git_prompt_info)%{$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}"