comparison rc/tcsh @ 241:443e0004a708

[tcsh] Ensures interactive terminal.
author Edho Arief <edho@myconan.net>
date Thu, 03 Nov 2011 15:41:03 +0700
parents a7484f2c9616
children 3167e31f8f01
comparison
equal deleted inserted replaced
240:a6fd1f0784f5 241:443e0004a708
1 #!/usr/bin/env tcsh 1 #!/usr/bin/env tcsh
2
3 # Ensures this script is running on terminal. Otherwise exit immediately.
4 if ( ! $?prompt ) then
5 exit
6 endif
7
2 [ -e "${HOME}/.ecos_tcsh.before" ] && source "${HOME}/.ecos_tcsh.before" 8 [ -e "${HOME}/.ecos_tcsh.before" ] && source "${HOME}/.ecos_tcsh.before"
3 umask 22 9 umask 22
4 limit coredumpsize 0 10 limit coredumpsize 0
5 11
6 set prompt="[%B%n@%m %~%b]%# " 12 set prompt="[%B%n@%m %~%b]%# "