# $FreeBSD: src/etc/root/dot.cshrc,v 1.25.2.2 2001/03/05 13:36:53 asmodai Exp $ # # .cshrc - csh resource script, read at beginning of execution by each shell # # see also csh(1), environ(7). # # Change the 'rm' (remove) command to interactive mode for safety: alias rm 'rm -i' # Copy (i)nteractively with a prompt before overwriting: alias cp 'cp -i' # Move or Rename (i)nteractively with a prompt before overwriting: alias mv 'mv -i' # LiSt files with Largest last: alias lsl 'ls -ablprtFT | sort -n +4' # LiSt files a page at a time with Largest shown first: alias lslm 'ls -ablprtFT | sort -n +4 -r | more' # LiSt files with Smallest shown last: alias lss 'ls -ablprtFT | sort -n +4 -r' # LiSt files a page at a time with the Smallest shown first: alias lssm 'ls -ablprtFT | sort -n +4 | more' # LiSt files with the newly modified (Time) shown last: alias lst 'ls -ablprtFT' # LiSt files a page at a time with the newly modified (Time) shown first: alias lstm 'ls -ablptFT | more' # LiSt files sorted by name: alias lsn 'ls -ablptFT | sort +9' # LiSt files a page at a time sorted by name: alias lsnm 'ls -ablptFT | sort +9 | more' # LiSt (a)ll files, even those that are hidden: alias la 'ls -a' # LiSt (A)ll files except for '.' & '..'; show (F)iletype symbol: alias lf 'ls -FA' # LiSt (A)ll files except for '.' & '..'; show in (l)ong format (wide): alias ll 'ls -lA' # An alias for mounting a MS-DOS floppy disk: alias mflop 'mount -t msdos /dev/fd0 /floppy' # An alias for unmounting a floppy disk: alias uflop 'umount /floppy' # An alias for mounting a CD-ROM disk: alias mcd 'mount -t cd9660 /dev/acd0c /cdrom' # An alias for unmounting a CD disk: alias ucd 'umount /cdrom' # Move UP one directory: alias up 'cd ..' # Move DowN to subdir: alias dn 'cd ./\!*' # Move OVer to different directory at same level: alias ov 'cd ../\!*' # Make a directory: alias md 'mkdir' # Make a directory, then go to it: alias mdc 'mkdir \!* && cd \!*' # Remove a directory: alias rd 'rmdir' # Remove a subdirectory and EVERYTHING it contains, (i)nteractively: alias treedel 'rm -dirv' # Remove a subdirectory and EVERYTHING it contains, WITHOUT PROMPTS: alias treezap 'rm -dfrv' # Show the last 25 commands entered: alias h 'history 25' # Show the status of tasks that you typed in on the command line: alias j 'jobs -l' # A righteous umask umask 22 # Set up the 'cd' command to trigger a change in the command prompt: alias cd 'chdir \!* && set prompt="`hostname -s` ${USER} `pwd` # "' set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin $HOME/bin) setenv EDITOR pico setenv PAGER more setenv BLOCKSIZE K if ($?prompt) then # An interactive shell -- set some stuff up set prompt = "`hostname -s` ${USER} `pwd` # " set filec set history = 100 set savehist = 100 set mail = (/var/mail/$USER) if ( $?tcsh ) then bindkey "^W" backward-delete-word bindkey -k up history-search-backward bindkey -k down history-search-forward endif endif