[PC-BSD Commits] r7018 - 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
Thu Jun 24 08:34:04 PDT 2010


Author: kris
Date: 2010-06-24 08:34:04 -0700 (Thu, 24 Jun 2010)
New Revision: 7018

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:

Another update to csh defaults from Xin LI



Modified: pcbsd/current/system-overlay/root/.cshrc
===================================================================
--- pcbsd/current/system-overlay/root/.cshrc	2010-06-24 14:59:40 UTC (rev 7017)
+++ pcbsd/current/system-overlay/root/.cshrc	2010-06-24 15:34:04 UTC (rev 7018)
@@ -25,7 +25,13 @@
 
 if ($?prompt) then
 	# An interactive shell -- set some stuff up
-	set prompt = '%{\033]0;%n@%m:%~\007%}[%B%n@%m%b] %B%~%b%# '
+	case "xterm*":
+                set prompt = '%{\033]0;%n@%m:%~\007%}[%B%n@%m%b] %B%~%b%# '
+                breaksw
+        default:
+                set prompt = '[%B%n@%m%b] %B%~%b%# '
+                breaksw
+        endsw
 	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-24 14:59:40 UTC (rev 7017)
+++ pcbsd/current/system-overlay/usr/share/skel/dot.cshrc	2010-06-24 15:34:04 UTC (rev 7018)
@@ -24,7 +24,14 @@
 
 if ($?prompt) then
 	# An interactive shell -- set some stuff up
-	set prompt = '%{\033]0;%n@%m:%~\007%}[%B%n@%m%b] %B%~%b%# '
+	switch ($TERM)
+    	case "xterm*":
+		set prompt = '%{\033]0;%n@%m:%~\007%}[%B%n@%m%b] %B%~%b%# '
+       		breaksw
+    	default:
+		set prompt = '[%B%n@%m%b] %B%~%b%# '
+       		breaksw
+	endsw
 	set autolist = ambiguous
 	set complete = enhance
 	set correct = cmd

Modified: pcbsd/stable/system-overlay/root/.cshrc
===================================================================
--- pcbsd/stable/system-overlay/root/.cshrc	2010-06-24 14:59:40 UTC (rev 7017)
+++ pcbsd/stable/system-overlay/root/.cshrc	2010-06-24 15:34:04 UTC (rev 7018)
@@ -25,7 +25,13 @@
 
 if ($?prompt) then
 	# An interactive shell -- set some stuff up
-	set prompt = '%{\033]0;%n@%m:%~\007%}[%B%n@%m%b] %B%~%b%# '
+	case "xterm*":
+                set prompt = '%{\033]0;%n@%m:%~\007%}[%B%n@%m%b] %B%~%b%# '
+                breaksw
+        default:
+                set prompt = '[%B%n@%m%b] %B%~%b%# '
+                breaksw
+        endsw
 	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-24 14:59:40 UTC (rev 7017)
+++ pcbsd/stable/system-overlay/usr/share/skel/dot.cshrc	2010-06-24 15:34:04 UTC (rev 7018)
@@ -24,7 +24,14 @@
 
 if ($?prompt) then
 	# An interactive shell -- set some stuff up
-	set prompt = '%{\033]0;%n@%m:%~\007%}[%B%n@%m%b] %B%~%b%# '
+	switch ($TERM)
+    	case "xterm*":
+		set prompt = '%{\033]0;%n@%m:%~\007%}[%B%n@%m%b] %B%~%b%# '
+       		breaksw
+    	default:
+		set prompt = '[%B%n@%m%b] %B%~%b%# '
+       		breaksw
+	endsw
 	set autolist = ambiguous
 	set complete = enhance
 	set correct = cmd



More information about the Commits mailing list