From f2a826e963f06a204dc0e09c05fc3e5419799f52 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sun, 31 May 2015 16:51:29 -0400 Subject: [PATCH] Add preview function to sorin theme --- modules/prompt/functions/prompt_sorin_setup | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/prompt/functions/prompt_sorin_setup b/modules/prompt/functions/prompt_sorin_setup index c072a4e..e339dff 100644 --- a/modules/prompt/functions/prompt_sorin_setup +++ b/modules/prompt/functions/prompt_sorin_setup @@ -136,4 +136,13 @@ function prompt_sorin_setup { SPROMPT='zsh: correct %F{1}%R%f to %F{2}%r%f [nyae]? ' } +function prompt_sorin_preview { + local +h PROMPT='' + local +h RPROMPT='' + local +h SPROMPT='' + + editor-info 2>/dev/null + prompt_preview_theme 'sorin' +} + prompt_sorin_setup "$@"