changeset 245:f74212d79fcb

Ensures we're running tcsh.
author Edho Arief <edho@myconan.net>
date Mon, 07 Nov 2011 12:30:06 +0700
parents b6b9a47de016
children 4eeccee282b1
files rc/tcsh
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rc/tcsh	Mon Nov 07 12:26:10 2011 +0700
+++ b/rc/tcsh	Mon Nov 07 12:30:06 2011 +0700
@@ -1,5 +1,10 @@
 #!/usr/bin/env tcsh
 
+# Ensures it's tcsh
+if ( ! $?tcsh ) then
+  exit
+endif
+
 # Ensures this script is running on terminal. Otherwise exit immediately.
 if ( ! $?prompt ) then
   exit