added makefile notification to prompt
This commit is contained in:
parent
bcb26001c5
commit
faac707bbf
9
.zshrc
9
.zshrc
@ -212,6 +212,14 @@ prompt_host() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Makefile exists
|
||||||
|
prompt_makefile() {
|
||||||
|
if [[ -f Makefile ]]; then
|
||||||
|
print -n "make"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Status:
|
# Status:
|
||||||
# - was there an error
|
# - was there an error
|
||||||
# - are there background jobs?
|
# - are there background jobs?
|
||||||
@ -247,6 +255,7 @@ prompt_forward() {
|
|||||||
prompt_backward() {
|
prompt_backward() {
|
||||||
CURRENT_BG='NONE'
|
CURRENT_BG='NONE'
|
||||||
prompt_segment backward magenta black "$MAVEN_PROJECT" # prompt maven project
|
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 yellow black "$vcs_info_msg_0_" # prompt vcs
|
||||||
prompt_segment backward green black "%T" # prompt time
|
prompt_segment backward green black "%T" # prompt time
|
||||||
prompt_clear
|
prompt_clear
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user