From swell.k@gmail.com  Fri Dec 17 00:21:59 2010
Return-Path: <swell.k@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7C6321065670
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 Dec 2010 00:21:59 +0000 (UTC)
	(envelope-from swell.k@gmail.com)
Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50])
	by mx1.freebsd.org (Postfix) with ESMTP id 10FFE8FC12
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 Dec 2010 00:21:58 +0000 (UTC)
Received: by wwf26 with SMTP id 26so120497wwf.31
        for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Dec 2010 16:21:57 -0800 (PST)
Received: by 10.216.160.129 with SMTP id u1mr2950844wek.88.1292545317875;
        Thu, 16 Dec 2010 16:21:57 -0800 (PST)
Received: from localhost (tor1.digineo.de [62.141.53.224])
        by mx.google.com with ESMTPS id e12sm357071wer.36.2010.12.16.16.21.54
        (version=SSLv3 cipher=RC4-MD5);
        Thu, 16 Dec 2010 16:21:57 -0800 (PST)
Message-Id: <86sjxxw8o2.fsf@gmail.com>
Date: Fri, 17 Dec 2010 03:21:49 +0300
From: Anonymous <swell.k@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] skel/dot.shrc: use prompt escapes, comment out emacs line editor

>Number:         153233
>Category:       conf
>Synopsis:       [patch] skel/dot.shrc: use prompt escapes, comment out emacs line editor
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 17 00:30:12 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
- prompt escapes were added to sh(1) in r142845
- set -o emacs is enabled by default per r206182
>Description:
Use PS1 that looks exactly like the one used in shells/bash by default.
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: share/skel/dot.shrc
===================================================================
--- share/skel/dot.shrc	(revision 216473)
+++ share/skel/dot.shrc	(working copy)
@@ -14,11 +14,11 @@
 # umask	022
 
 # Enable the builtin emacs(1) command line editor in sh(1),
-# e.g. C-a -> beginning-of-line.
-set -o emacs
+# e.g. C-a -> beginning-of-line. (default for interactive shell)
+# set -o emacs
 
-# Uncomment this and comment the above to enable the builtin vi(1) command
-# line editor in sh(1), e.g. ESC to go into visual mode.
+# Enable the builtin vi(1) command line editor in sh(1),
+# e.g. ESC to go into visual mode.
 # set -o vi
 
 
@@ -36,12 +36,8 @@
 # alias rm='rm -i'
 
 
-# # set prompt: ``username@hostname$ '' 
-# PS1="`whoami`@`hostname | sed 's/\..*//'`"
-# case `id -u` in
-# 	0) PS1="${PS1}# ";;
-# 	*) PS1="${PS1}$ ";;
-# esac
+# # set prompt: ``[username@hostname directory]$ '' 
+# PS1="[$(id -un)@\h \w]\\$ "
 
 # search path for cd(1)
 # CDPATH=.:$HOME
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
