Skip to content

Instantly share code, notes, and snippets.

@supermomonga
Created February 22, 2013 13:37
Show Gist options
  • Save supermomonga/5013419 to your computer and use it in GitHub Desktop.
Save supermomonga/5013419 to your computer and use it in GitHub Desktop.
function! g:my_vimshell_postexec(cmdline, context)
let l:prompt = (b:vimshell.system_variables['status'] == 0 ? "(*'-') < " : "(*;-;)? < ")
let b:vimshell.context.prompt = l:prompt
let g:vimshell_prompt = l:prompt
return a:cmdline
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment