From 8dcd37c724220dc97284fa6500f8921124a8eda8 Mon Sep 17 00:00:00 2001 From: Ruben Sainiuc Date: Fri, 23 Sep 2016 08:41:29 +0300 Subject: [PATCH] Display command return code in the half-life theme --- themes/half-life.zsh-theme | 3 +++ 1 file changed, 3 insertions(+) diff --git a/themes/half-life.zsh-theme b/themes/half-life.zsh-theme index a3c50570..990a7f1b 100644 --- a/themes/half-life.zsh-theme +++ b/themes/half-life.zsh-theme @@ -94,3 +94,6 @@ function steeef_precmd { add-zsh-hook precmd steeef_precmd PROMPT=$'%{$purple%}%n%{$reset_color%} in %{$limegreen%}%~%{$reset_color%}$(ruby_prompt_info " with%{$fg[red]%} " v g "%{$reset_color%}")$vcs_info_msg_0_%{$orange%} λ%{$reset_color%} ' + +local return_code="%(?..%{$fg_bold[red]%} %? Λ%{$reset_color%})" +RPS1="${return_code}"