Mercurial > ec-dotfiles
comparison rc/tcsh @ 243:3167e31f8f01
[tcsh] Sanity tester.
| author | Edho Arief <edho@myconan.net> |
|---|---|
| date | Thu, 03 Nov 2011 15:55:44 +0700 |
| parents | 443e0004a708 |
| children | b6b9a47de016 |
comparison
equal
deleted
inserted
replaced
| 242:ebfa844d2ef8 | 243:3167e31f8f01 |
|---|---|
| 1 #!/usr/bin/env tcsh | 1 #!/usr/bin/env tcsh |
| 2 | 2 |
| 3 # Ensures this script is running on terminal. Otherwise exit immediately. | 3 # Ensures this script is running on terminal. Otherwise exit immediately. |
| 4 if ( ! $?prompt ) then | 4 if ( ! $?prompt ) then |
| 5 exit | |
| 6 endif | |
| 7 | |
| 8 # Ensures we're not loading this script again. | |
| 9 if ( ! $?ecos_tcsh_loaded ) then | |
| 10 set ecos_tcsh_loaded="yes" | |
| 11 else | |
| 5 exit | 12 exit |
| 6 endif | 13 endif |
| 7 | 14 |
| 8 [ -e "${HOME}/.ecos_tcsh.before" ] && source "${HOME}/.ecos_tcsh.before" | 15 [ -e "${HOME}/.ecos_tcsh.before" ] && source "${HOME}/.ecos_tcsh.before" |
| 9 umask 22 | 16 umask 22 |
