summaryrefslogtreecommitdiff
path: root/net:foret
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-06-14 10:38:42 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-06-14 10:38:42 +0200
commit02bfe1bc0d3d7387db74aca3943e19e9bc0527e5 (patch)
tree7a1fe3ea51f8494599946cd77f9f61f4cac3e0ed /net:foret
parent46ebf3dbab5e9587447ff27cad17e6c57a7be783 (diff)
[ExtraInfos] Q: ARCH + OS
Diffstat (limited to 'net:foret')
-rw-r--r--net:foret/Prompts.zsh18
1 files changed, 17 insertions, 1 deletions
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)