[PC-BSD Commits] r7009 - in pcbsd: current/system-overlay/root current/system-overlay/usr/share/skel stable/system-overlay/root stable/system-overlay/usr/share/skel

svn at pcbsd.org svn at pcbsd.org
Wed Jun 23 07:35:29 PDT 2010


Author: kris
Date: 2010-06-23 07:35:29 -0700 (Wed, 23 Jun 2010)
New Revision: 7009

Modified:
   pcbsd/current/system-overlay/root/.cshrc
   pcbsd/current/system-overlay/usr/share/skel/dot.cshrc
   pcbsd/stable/system-overlay/root/.cshrc
   pcbsd/stable/system-overlay/usr/share/skel/dot.cshrc
Log:

Updated default prompts for csh, thankx Xin LI!



Modified: pcbsd/current/system-overlay/root/.cshrc
===================================================================
--- pcbsd/current/system-overlay/root/.cshrc	2010-06-23 14:30:49 UTC (rev 7008)
+++ pcbsd/current/system-overlay/root/.cshrc	2010-06-23 14:35:29 UTC (rev 7009)
@@ -25,7 +25,7 @@
 
 if ($?prompt) then
 	# An interactive shell -- set some stuff up
-	set prompt = "`/usr/bin/whoami`@`/bin/hostname -s`# "
+	set prompt = '%{\033]0;%n@%m:%~\007%}[%B%n@%m%b] %B%~%b%# '
 	set filec
 	set history = 100
 	set savehist = 100

Modified: pcbsd/current/system-overlay/usr/share/skel/dot.cshrc
===================================================================
--- pcbsd/current/system-overlay/usr/share/skel/dot.cshrc	2010-06-23 14:30:49 UTC (rev 7008)
+++ pcbsd/current/system-overlay/usr/share/skel/dot.cshrc	2010-06-23 14:35:29 UTC (rev 7009)
@@ -22,14 +22,9 @@
 setenv	PAGER	more
 setenv	BLOCKSIZE	K
 
-
 if ($?prompt) then
 	# An interactive shell -- set some stuff up
-    if ( `whoami` == root ) then
-        set prompt="%B[root@%m]%b%/(%h)# "
-    else
-        set prompt="%B[%n@%m]%b%/(%h)% "
-    endif
+	set prompt = '%{\033]0;%n@%m:%~\007%}[%B%n@%m%b] %B%~%b%# '
 	set autolist = ambiguous
 	set complete = enhance
 	set correct = cmd

Modified: pcbsd/stable/system-overlay/root/.cshrc
===================================================================
--- pcbsd/stable/system-overlay/root/.cshrc	2010-06-23 14:30:49 UTC (rev 7008)
+++ pcbsd/stable/system-overlay/root/.cshrc	2010-06-23 14:35:29 UTC (rev 7009)
@@ -25,7 +25,7 @@
 
 if ($?prompt) then
 	# An interactive shell -- set some stuff up
-	set prompt = "`/usr/bin/whoami`@`/bin/hostname -s`# "
+	set prompt = '%{\033]0;%n@%m:%~\007%}[%B%n@%m%b] %B%~%b%# '
 	set filec
 	set history = 100
 	set savehist = 100

Modified: pcbsd/stable/system-overlay/usr/share/skel/dot.cshrc
===================================================================
--- pcbsd/stable/system-overlay/usr/share/skel/dot.cshrc	2010-06-23 14:30:49 UTC (rev 7008)
+++ pcbsd/stable/system-overlay/usr/share/skel/dot.cshrc	2010-06-23 14:35:29 UTC (rev 7009)
@@ -22,14 +22,9 @@
 setenv	PAGER	more
 setenv	BLOCKSIZE	K
 
-
 if ($?prompt) then
 	# An interactive shell -- set some stuff up
-    if ( `whoami` == root ) then
-        set prompt="%B[root@%m]%b%/(%h)# "
-    else
-        set prompt="%B[%n@%m]%b%/(%h)% "
-    endif
+	set prompt = '%{\033]0;%n@%m:%~\007%}[%B%n@%m%b] %B%~%b%# '
 	set autolist = ambiguous
 	set complete = enhance
 	set correct = cmd



More information about the Commits mailing list