Skip to content

Commit

Permalink
Add preview function to sorin theme
Browse files Browse the repository at this point in the history
  • Loading branch information
sorin-ionescu committed May 31, 2015
1 parent bdec6c4 commit f2a826e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/prompt/functions/prompt_sorin_setup
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit f2a826e

Please sign in to comment.