From 02bfe1bc0d3d7387db74aca3943e19e9bc0527e5 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 14 Jun 2012 10:38:42 +0200 Subject: [ExtraInfos] Q: ARCH + OS --- net:foret/Prompts.zsh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'net:foret') diff --git a/net:foret/Prompts.zsh b/net:foret/Prompts.zsh index cd02381..4bfa3d7 100644 --- a/net:foret/Prompts.zsh +++ b/net:foret/Prompts.zsh @@ -25,6 +25,22 @@ __static_dynamic () esac } +__compilation_arch () +{ + [ -n "$ARCH" ] || exit + echo -n $C_ + export | grep -q '^ARCH=' && echo -n "1;" + echo -n $_make_colors[target]$_C$ARCH +} + +__compilation_os () +{ + [ -n "$OS" ] || exit + echo -n $C_ + export | grep -q '^OS=' && echo -n "1;" + echo -n $_make_colors[target]$_C$OS +} + __compilation_target () { [ -n "$TARGET" ] || exit @@ -59,5 +75,5 @@ __makeflags () } PS1_TASKBAR+=(__makeflags __verbose_compilation __nproc_compilation) -PS1_EXTRA_INFO+=(__static_dynamic __compilation_target) +PS1_EXTRA_INFO+=(__static_dynamic __compilation_arch __compilation_os __compilation_target) -- cgit v1.2.3