Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2012 14:13:22 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r234133 - head/etc/root
Message-ID:  <201204111413.q3BEDMU4081168@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Wed Apr 11 14:13:22 2012
New Revision: 234133
URL: http://svn.freebsd.org/changeset/base/234133

Log:
  - remove the length shortening on the path
  - make the default prompt a bit more like scp
  - make the user show as root even when using 'su' instead of 'su -'
  - the key bindings didn't hurt anything but likely hide a bug
  - merge history instead of overwriting it
  
  Submitted by:	gavin, joel
  Approved by:	cperciva

Modified:
  head/etc/root/dot.cshrc

Modified: head/etc/root/dot.cshrc
==============================================================================
--- head/etc/root/dot.cshrc	Wed Apr 11 14:12:28 2012	(r234132)
+++ head/etc/root/dot.cshrc	Wed Apr 11 14:13:22 2012	(r234133)
@@ -23,12 +23,15 @@ setenv	BLOCKSIZE	K
 
 if ($?prompt) then
 	# An interactive shell -- set some stuff up
-	set prompt = "%n@%m:%c04%# "
+	if ($uid == 0) then
+		set user = root
+	endif
+	set prompt = "%n@%m:%/ %# "
 	set promptchars = "%#"
 
 	set filec
 	set history = 1000
-	set savehist = 1000
+	set savehist = (1000 merge)
 	set autolist = ambiguous
 	# Use history to aid expansion
 	set autoexpand
@@ -38,10 +41,6 @@ if ($?prompt) then
 		bindkey "^W" backward-delete-word
 		bindkey -k up history-search-backward
 		bindkey -k down history-search-forward
-
-		bindkey "\e[1~" beginning-of-line #make Home key work;
-		bindkey "\e[3~" delete-char #make Delete key work;
-		bindkey "\e[4~" end-of-line #make End key work;
 	endif
 
 endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204111413.q3BEDMU4081168>