scripts.tcsh
raw| 1 | |
| 2 | # Thanks go to Matthew Russell who provided this script. His usage |
| 3 | # comments follow: |
| 4 | # |
| 5 | # This could be inserted into either ~/.tcshrc or |
| 6 | # ~/.login. I don't think the "cwdcmd" alias works |
| 7 | # on csh, the forerunner to tcsh, though. |
| 8 | # |
| 9 | |
| 10 | # Run ondir on change of directory |
| 11 | alias cwdcmd eval \`ondir -t \$owd\` |
| 12 | |
| 13 | # Run ondir on login |
| 14 | eval ondir -t / |