{"id":618204,"url":"http://patchwork.ozlabs.org/api/patches/618204/","web_url":"http://patchwork.ozlabs.org/project/lede/patch/1462325630-18332-1-git-send-email-ldpinney@gmail.com/","project":{"id":54,"url":"http://patchwork.ozlabs.org/api/projects/54/","name":"LEDE development","link_name":"lede","list_id":"lede-dev.lists.infradead.org","list_email":"lede-dev@lists.infradead.org","web_url":"http://lede-project.org/","scm_url":"","webscm_url":"http://git.lede-project.org/","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1462325630-18332-1-git-send-email-ldpinney@gmail.com>","list_archive_url":null,"date":"2016-05-04T01:33:50","name":"generic: Colorize the command line prompt","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"hash":"917cfbb306fe87f84ad1acccb0e9797d798d13e1","submitter":{"id":65512,"url":"http://patchwork.ozlabs.org/api/people/65512/","name":"L. D. Pinney","email":"ldpinney@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/lede/patch/1462325630-18332-1-git-send-email-ldpinney@gmail.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/618204/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/618204/checks/","tags":{},"related":[],"headers":{"Return-Path":"<lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[IPv6:2001:1868:205::9])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3r00rd0Fg5z9t6S\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  4 May 2016 11:32:01 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux))\n\tid 1axlf4-0006hS-AR; Wed, 04 May 2016 01:31:34 +0000","from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f])\n\tby bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat\n\tLinux)) id 1axlf1-0005qi-RU\n\tfor lede-dev@lists.infradead.org; Wed, 04 May 2016 01:31:32 +0000","by mail-oi0-x22f.google.com with SMTP id k142so48592794oib.1\n\tfor <lede-dev@lists.infradead.org>;\n\tTue, 03 May 2016 18:31:09 -0700 (PDT)","from brown.lan (ip70-189-80-78.ok.ok.cox.net. [70.189.80.78])\n\tby smtp.gmail.com with ESMTPSA id\n\tmz4sm533150obb.20.2016.05.03.18.31.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 03 May 2016 18:31:08 -0700 (PDT)"],"Authentication-Results":"ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com header.b=qLJrNOyf;\n\tdkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=from:to:cc:subject:date:message-id;\n\tbh=9y8nSdxSG5UzLH9O1meYoUNbt2xqf74O+2yTm5Dd4Ns=;\n\tb=qLJrNOyf9EXNhU8ywfmpv0SN6L5hyCEoHL27xUAak9ZUKid0dNWpOOZCktNH3IQdAK\n\t6NmpJmloycMulL60vnTQPsKPU1/Fn273J31+1XFJQmTs3c+lBk+XR0ijU4QGrZEGGXlz\n\tcuJYf3MpufK9hplXtYxem4bEExXoA1lFYYSn5gJT0DHyvHJP4IsN8LcIChNT9AbWqb3w\n\tJouYqu+w6Eclugps+2bf1GxjQ8YLmHopKi78JFEJZeBvL+Exu3nBArASmP3y5+1GJNb+\n\t0crCGAC23UNtKC1OVYC9KNpH7EryHGsP7CsqC/QMdeBdmARgjXrPRSqqGz30nQoS9Evg\n\t0SjA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=9y8nSdxSG5UzLH9O1meYoUNbt2xqf74O+2yTm5Dd4Ns=;\n\tb=C8b0y83N9tr0+Bp8nPnVG1pgOIIvp1uN84ZPWSAu2rvc1DanabMKHrL1BAxd3FqwN3\n\tSFayuLuN0fa9H/ElaJ4aqwYlIro3UrJj5VzSO4putcFEmhmzq0QNtnUg23y8qgpJM3Ca\n\taosVu1CxJu7Vt7LBJ691PCnI64RpU3rZLiW11fFVTjUMoYEIWcWbRSrR5f8ulPr7VOfq\n\tHOMo4yUaj2r+5CoGI3aN5XCXzsFKNocFvioSSZ1gLQNidKIx5xBM2pSla28r5KUJTsqG\n\tCDEusSgEVqK35OiqMs0MaFu8mGoDTx3zthcUJ4GvxBLSEL5zOMw7TjH9btb+nfCWBaxO\n\tP26A==","X-Gm-Message-State":"AOPr4FU4jIVipdN7W8rFhgG8B/N9Nldm+OlzIwag00FOkkQxdjMGdfSfXJEt6elgjEbryg==","X-Received":"by 10.202.85.198 with SMTP id j189mr2961237oib.111.1462325469424;\n\tTue, 03 May 2016 18:31:09 -0700 (PDT)","From":"\"L. D. Pinney\" <ldpinney@gmail.com>","To":"LEDE Development List <lede-dev@lists.infradead.org>","Subject":"[PATCH] generic: Colorize the command line prompt","Date":"Tue,  3 May 2016 20:33:50 -0500","Message-Id":"<1462325630-18332-1-git-send-email-ldpinney@gmail.com>","X-Mailer":"git-send-email 2.8.0.rc3","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20160503_183132_010039_5336BE30 ","X-CRM114-Status":"UNSURE (   9.18  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-2.7 (--)","X-Spam-Report":"SpamAssassin version 3.4.0 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.7 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow\n\ttrust [2607:f8b0:4003:c06:0:0:0:22f listed in] [list.dnswl.org]\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (ldpinney[at]gmail.com)\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"lede-dev@lists.infradead.org","X-Mailman-Version":"2.1.20","Precedence":"list","List-Id":"<lede-dev.lists.infradead.org>","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/lede-dev/>","List-Post":"<mailto:lede-dev@lists.infradead.org>","List-Help":"<mailto:lede-dev-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=subscribe>","Cc":"\"L . D . Pinney\" <ldpinney@gmail.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"Lede-dev\" <lede-dev-bounces@lists.infradead.org>","Errors-To":"lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"},"content":"This patch colorizes the command line prompt \n\nSigned-off-by: L. D. Pinney <ldpinney@gmail.com>\n---\n\npackage/base-files/files/etc/profile | 9 ++++++++-\n 1 file changed, 8 insertions(+), 1 deletion(-)","diff":"diff --git a/package/base-files/files/etc/profile b/package/base-files/files/etc/profile\nindex ad8fe12..ccceb2f 100644\n--- a/package/base-files/files/etc/profile\n+++ b/package/base-files/files/etc/profile\n@@ -9,7 +9,13 @@ fgrep -sq '/ overlay ro,' /proc/mounts && {\n export PATH=\"%PATH%\"\n export HOME=$(grep -e \"^${USER:-root}:\" /etc/passwd | cut -d \":\" -f 6)\n export HOME=${HOME:-/root}\n-export PS1='\\u@\\h:\\w\\$ '\n+#export PS1='\\u@\\h:\\w\\$ '\n+export PS1='\\t [\\[\\033[31;1m\\]\\u\\[\\033[0m\\]@\\[\\033[32;1m\\]\\h\\[\\033\\[0m\\]:\\[\\033[33;1m\\]$PWD\\[\\033[0m\\]]\\$ '\n+\n+### COLORS ###\n+# 31 = red ; 32 = green ; 33 = yellow ; 34 = blue ; 35 = magenta ; 36 = cyan ; 37 = white ; 38 = black\n+\n+\n \n [ -x /bin/more ] || alias more=less\n [ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi\n","prefixes":[]}