summaryrefslogtreecommitdiff
path: root/linux/bin/neo
diff options
context:
space:
mode:
authorben <ben@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-01-10 12:38:13 +0000
committerben <ben@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-01-10 12:38:13 +0000
commitc65b1079454dd161caf164ca9ef8df7a5a26ff93 (patch)
tree3a89554cc86dbacf1b9095baa58c739640ec6815 /linux/bin/neo
parent81930edf4c2fbe628c0ca0445a456e092b22aaff (diff)
downloadneo-layout-c65b1079454dd161caf164ca9ef8df7a5a26ff93.tar.gz
neo-layout-c65b1079454dd161caf164ca9ef8df7a5a26ff93.tar.bz2
neo-layout-c65b1079454dd161caf164ca9ef8df7a5a26ff93.zip
num neo uiae und asdf angeglichen, kleine bugfixes
git-svn-id: https://svn.neo-layout.org@1420 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'linux/bin/neo')
-rwxr-xr-xlinux/bin/neo19
1 files changed, 19 insertions, 0 deletions
diff --git a/linux/bin/neo b/linux/bin/neo
index 902bd04..96c5b42 100755
--- a/linux/bin/neo
+++ b/linux/bin/neo
@@ -1,5 +1,24 @@
#!/bin/sh
+# colour definitions
+normal="\033[0m"
+red="\033[31m"
+orange="\033[33m"
+green="\033[32m"
+
+if [ "foo`echo -e bar`" = "foobar" ];then
+ # GNU echo
+ ECHO_e="echo -e"
+else
+ # POSIX echo
+ ECHO_e="echo"
+fi
+
+die() {
+ $ECHO_e "${red}$@${normal}" >&2
+ exit 1
+}
+
if [ -f "${NEO_CONFIG}" ]; then
. "${NEO_CONFIG}" || die "Failed to source ${NEO_CONFIG}"
elif [ -f "${HOME}"/.neorc ]; then