From faac707bbf6f17182ff3322a87d0ad56b16af5c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Fri, 22 Apr 2016 09:30:07 +0200 Subject: [PATCH] added makefile notification to prompt --- .zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.zshrc b/.zshrc index 57dd175..16f9790 100644 --- a/.zshrc +++ b/.zshrc @@ -212,6 +212,14 @@ prompt_host() { fi } +# Makefile exists +prompt_makefile() { + if [[ -f Makefile ]]; then + print -n "make" + fi +} + + # Status: # - was there an error # - are there background jobs? @@ -247,6 +255,7 @@ prompt_forward() { prompt_backward() { CURRENT_BG='NONE' prompt_segment backward magenta black "$MAVEN_PROJECT" # prompt maven project + prompt_segment backward cyan black "$(prompt_makefile)" prompt_segment backward yellow black "$vcs_info_msg_0_" # prompt vcs prompt_segment backward green black "%T" # prompt time prompt_clear