From patchwork Sat May 14 06:27:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "L. D. Pinney" X-Patchwork-Id: 622200 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3r6GwS5pyTz9t6x for ; Sat, 14 May 2016 16:27:04 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=U8yCdp2v; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b1T1c-0006xE-CT; Sat, 14 May 2016 06:26:08 +0000 Received: from mail-oi0-x243.google.com ([2607:f8b0:4003:c06::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b1T1a-0006we-If for lede-dev@lists.infradead.org; Sat, 14 May 2016 06:26:07 +0000 Received: by mail-oi0-x243.google.com with SMTP id t140so7818816oie.0 for ; Fri, 13 May 2016 23:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=lbV52+JqbQcTeJ47ydKaExHVWxDkliePEAYufeuhzQM=; b=U8yCdp2v2EBT2zr1NDTHQHZh2LIWUZBJ1HyyImJCI/h9L52QSbfTent0e7+2Tu61xb v1qangGI0B3FcFcE5h2aFNaSm8uDMzh/aaZKMgF9qvybKRr/B+VULdhqQmAYANxwkUjn f7r6bfjfxzULptGc0RmRFwy02fCC9sZLSkhB9gKoBI0f+aeG+Z36dZx+YlDy0b8fOQEz R2SydlWsURPtk7FFVQKJOQNVkyzjLkQ8ZmXY0b+GDQ02SQU3wvPv/sOmSrehZpwYA6eq lEErvGJtkXpsoWOiuyncWsnKdv9tal9J44A167tgIYW3e2oNfGiSDkUC0rT8CxoFONir 39tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lbV52+JqbQcTeJ47ydKaExHVWxDkliePEAYufeuhzQM=; b=ItvIhZOfxOEmM6tubMdcPh8rTaojsCOtMKi6jqtiqHSPEmepBqld+tKzIoP8s0tV1q klJKGOsDPxVe7VZ7A9hl/7PmAwoHRqM5cA+yu4trZtfQOjHqsuF+Ypz7mCRgWvUq0ybm YOYmC6m5jfXwNVFKeN/ZpsBQKTQx8emycTKsycHMl0xp8W0z8RbXnsWfbskL7iq8Ud6q Zhc2pImtvvaFg0qgfsp2K6lOUWAatZ3HI4CQp58mj9JnwD+wckMoD+jplpSTfxcmXtAo yaJXjb366qME8OcPx/CAMiZWEJkd2u37DVW+xSudSod6bAUzgzUUiA8ArYiAOiwFT/yb ravA== X-Gm-Message-State: AOPr4FVWwuGco7gqkyLGuHuyzvaf+jnhxGxjMLqVDkG9zafrb00AIL8nNHC2+k+q7cD6mQ== X-Received: by 10.157.6.76 with SMTP id 70mr10331363otn.100.1463207145513; Fri, 13 May 2016 23:25:45 -0700 (PDT) Received: from brown.lan (ip70-189-80-78.ok.ok.cox.net. [70.189.80.78]) by smtp.gmail.com with ESMTPSA id 5sm6494329otw.11.2016.05.13.23.25.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 May 2016 23:25:45 -0700 (PDT) From: "L. D. Pinney" To: LEDE Development List Date: Sat, 14 May 2016 01:27:51 -0500 Message-Id: <1463207271-17186-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-20160513_232606_709384_79D73093 X-CRM114-Status: UNSURE ( 6.44 ) 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: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:4003:c06:0:0:0:243 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ldpinney[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain Subject: [LEDE-DEV] [RFC] generic: Optional Command Line Prompts X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "L . D . Pinney" MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This patch sets the busybox prompt to the default. It also provides options to colorizes (or not) the command line prompt. Also optional time display. Signed-off-by: L. D. Pinney diff --git a/package/base-files/files/etc/profile b/package/base-files/files/etc/profile index ad8fe12..3d03204 100644 --- a/package/base-files/files/etc/profile +++ b/package/base-files/files/etc/profile @@ -9,7 +9,14 @@ fgrep -sq '/ overlay ro,' /proc/mounts && { export PATH="%PATH%" export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6) export HOME=${HOME:-/root} -export PS1='\u@\h:\w\$ ' +#export PS1='\u@\h:\w\$ ' +#export PS1='\t \u@\h:\w\$ ' +#export PS1='[\[\033[31;1m\]\u\[\033[0m\]@\[\033[32;1m\]\h\[\033\[0m\]:\[\033[33;1m\]$PWD\[\033[0m\]]\$ ' +#export PS1='\t [\[\033[31;1m\]\u\[\033[0m\]@\[\033[32;1m\]\h\[\033\[0m\]:\[\033[33;1m\]$PWD\[\033[0m\]]\$ ' + +### COLORS ### +# 31 = red ; 32 = green ; 33 = yellow ; 34 = blue ; +# 35 = magenta ; 36 = cyan ; 37 = white ; 38 = black [ -x /bin/more ] || alias more=less [ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi