File: scripts.tcsh

package info (click to toggle)
ondir 0.2.3%2Bgit0.55279f03-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch
  • size: 188 kB
  • ctags: 53
  • sloc: ansic: 450; makefile: 70; sh: 13; csh: 2
file content (14 lines) | stat: -rwxr-xr-x 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# Thanks go to Matthew Russell who provided this script. His usage 
# comments follow:
# 
# This could be inserted into either ~/.tcshrc or
# ~/.login. I don't think the "cwdcmd" alias works
# on csh, the forerunner to tcsh, though.
#

# Run ondir on change of directory
alias cwdcmd eval \`ondir -t \$owd\`

# Run ondir on login
eval ondir -t /