From d52bd8ebfa7d2df40cd1fa17b7692362e0b9c8b7 Mon Sep 17 00:00:00 2001 From: exos Date: Tue, 6 Jan 2015 20:17:34 -0300 Subject: [PATCH] Add presentation --- themes/exos.zsh-theme | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/themes/exos.zsh-theme b/themes/exos.zsh-theme index a480ba020..e17118c88 100644 --- a/themes/exos.zsh-theme +++ b/themes/exos.zsh-theme @@ -13,6 +13,14 @@ add-zsh-hook precmd prompt_vcs add-zsh-hook precmd prompt_virtualenv add-zsh-hook precmd prompt_projectname +presentation () { + toilet -f future -F metal "$HOST $(date +%H:%m:%S)" 2> /dev/null && { + w + } || { + echo "This theme requires toilet command, please install" + } +} + detect_pdir () { pdir=$(git rev-parse --show-toplevel 2> /dev/null ) } @@ -84,4 +92,6 @@ local ret_status="%(?:%{$fg_bold[green]%}⏺:%{$fg_bold[red]%}⏺)" PROMPT='${ret_status}%{$fg[blue]%}${PROMPT_HOST}${pname}%{$fg_bold[green]%}%p %{$fg_bold[yellow]%}%2~ ▶%{$reset_color%} ' RPROMPT='%F{blue}$(pwd)%(?: :%{$fg_bold[red]%} %? )%F{yellow}[%*]%f' +presentation + # vim: set ft=zsh ts=4 sw=4 et: