Fried Script INFO by Jason Fried This script started as my custom tcsh/csh settings and a colorized prompt that I used on various freebsd systems. Then when I started at SLU I got a cs.selu.edu shell account, cs.selu.edu is a linux system so I changed the script up so that I could use the same file on both OS's and work/look the same. Then I had problems where I would make changes to the script and would have to by hand on each system ftp and pull down a copy of the script and sometimes i couldnt tell if i had a current version or not. So I Setup a system where I could easly update the script. And it has grown from that. I built the script so that i should work on any operating system that has support for TCSH/CSH, Some that I have tested FreeBSD,Linux,SunOS,Darwin, though the FreeBSD instructions should work for netbsd and openbsd I have just never tried. Then cs.selu.edu needed a good tcsh config script for its skels dir so I stripped down my script and made a linux only version. So I have two version now. I will probley take out the SunOS support out of the standard script and making a sunos only version of the script because the code for it is just too ugly. The Standard Script will allways contain support for both Linux and *BSD(including darwin) I will add support to my script for any OS that runs tcsh, i just need access to an account on that OS so i can get it to work. To keep uptodate with new versions type 'cshrcupdate'. there are two aliases for cshrcupdate, 'doupdate' and 'getupdate'. getupdate was added in 2.2.3, i can remember when i added 'doupdate' probley in 2.2.0. if you have a version of my script that is so old that it is from before I added in the update command then send it to me i would like to see it. My Script has aways had the same look so it is hard to miss http://cs.selu.edu/~jfried/cshrc.tar.gz <- this is the standard distro of my script with the Multi-OS support *OLD* http://cs.selu.edu/~jfried/cshrc-linux.tar.gz <- this is a trimmed down version that only contains linux support The Prompt Colors are Different in csh than in tcsh, though I havent used the csh support in years since most /bin/csh i see are just hard links to /bin/tcsh nowdays ok I swear i hate sunOS, it will be removed from the base distro and placed in a seprate distro in version 2.2.4 Current Version 2.2.7 Made the Script more friendly for my iPhone Replaced all the ansi escape characters with \e Fixed Title Bars in OS X Added Emacs stye command prompt editing Fixed LS alias in OS X Also fixed LS in iPhone Version 2.2.6-Beta-4 Added some paths for use with darwin ports Version 2.2.6-Beta-3 Fixed Date alias to allow for aruments Version 2.2.6-Beta-2 Added ped alias - for perl inline proccessing of files like sed Version 2.2.5 OMFG hehe was reading man ls on darwin saw they had the -G option for color :) this is the way the commands ls and older(colorls) on freebsd work But I was so happy with getting color working on Darwin terminals that I jumped straight to 2.2.5 hehe now my script is complete on OS X well 10.3 at least there is still a problem, tcsh has a buildin ls its ls-F, it is in color and is faster than using the system ls, normaly on systems I just alias ls "ls-F" and be done with it, because if i "ls -la" it will parse the arguments, and display a ls -lFa (with color). But on Darwin it doesnt strange very strange. oh well Version 2.2.4d changed some term crap, added some keybindings, this version may not last long. added more keybindings Version 2.2.4c Added some AIX stuff. I hate AIX, but not asmuch as SunOS Version 2.2.4b added /sw/bin to the path for MacOS people and Fink also some changes to SunOS/Solaris support Version 2.2.4 made it compatible with freeshell Version 2.2.3i This one is a change for the linux support mail is located in /var/spool/mail more offten then /var/mail Version 2.2.3h Ok i found somebody who actualy uses Freebsd 4.6.2 and the version check for LS color sysntax for backwards compatability wasnt setup for x.x.x version types so i made a new version check. Version 2.2.3g Fixed problem with correction being set on some linux systems On next version i will be removing solaris support, well maybe just solaris console support, Im sorry i dont like the whiteBG of the solaris console i'll look into it Version 2.2.3f Found out i miss spelled 'echo_style' I had 'echo_stype' maybe that was fixed in the 'e' version :) Got the first email that showed that somebody is using my script im so exsited it was from a OS X user reporting a problem, i fixed the problem Version 2.2.3e Before version 2.2.3d there was an 'e' version that disapeared and reverted to 2.2.3d I was told about it untill i saw it on one of my servers. because this version may exist in the world i will be skipping it and going to 'f' Version 2.2.3d Made some changes to fix problems i came in contact with on a Cobalt RaQ2 which runs a type of Linux a few settings here and there, I promise i will make each update from now on contain lots more improvements and shit xterm-color is screwed up so in linux it is just xterm from now on Version 2.2.3c Few changes here an there Version 2.2.3b Problem with the alias for ls in freebsd mode, it was late last night when i made 2.2.3a, so i guess i couldnt see it. but all is well now Version 2.2.3a Set up so that Darwin Users can use the 'getupdate' feature Woh I realized that my EDITOR and PAGER were asuming that you had pico and less, I fixed that check the existance Version 2.2.3 ******* From this version on a restart of tcsh is not required to use the new file after a 'getupdate' ****** ******* Just type 'getupdate' and the new .cshrc will be downloaded and the new settings will be loaded ****** I finaly named the script in this version "Fried Script" its been 7 years or so and now it has an offical name been a while since i updated this file. in version 2.2.2a i forked the code, into the standard and linux-compact version. I did this because one the SunOS code is ugly, it bloats the script. and because needed a .cshrc file to put in the /etc/skels dir and it was on a linux box so it didnt need all the other OS support crap. cshrc.tar.gz is the standard cshrc-linux.tar.gz is the linux compact version Im going to take out the SunOS code because i never use SunOS anymore, and its makes my script ugly. this version includes some custom completions and other changes Version 2.2.1 Hey added in some key bindings for tcsh this helps alot, when using crapy terminals Version 2.2.0 ok ive scraped 2.1.x I stripped out the themes crap out of 2.2.x; I took 2.1.3 and remade it with all the enhancements of 2.2 Oh and I have Solaris Support. Currently I have a colorless version for Solaris because on the Sun server i tested this on colors looked like crap. I may add in a (?REMOTEHOST) check Version 2.1.3 #2.2 is crap. themes bah useless #Term detect block is removed it is crap cshrcupdate has been changed around easyer to change I will be taking all the enhancements from the 2.2.0-beta and moving them into 2.1.x line of cshrc. becase themese was crap. it worked was neat but still crap. maybe i'll release different .cshrc for each theme Version 2.1.2a #Last 2.1 update I hope added in a umask 022 into the script because i was on a server today that had a default mask of 002 this caused problems #Term block is removed from 2.2 put in autolist which has aways been in 2.2, Version 2.1.2 revamped term selection #The entire term block may disapear in 2.2 Added Darwin Instructions Version 2.1.1a Added two aliases 'date' - 12hr time and 'mildate' - 24hr time Version 2.1.1 Simple Cosmetc changes, in the term detect took out the vt100 and cons25 aliases, not needed Version 2.1.0b well changed a ; into a : in the linux color settings Version 2.1.0a why 2.1.0a well only added 1 alias type "version" and get the script version Version 2.1.0 Minor changes Version 2.0.9 Muhahah Linux auto-updating support Version 2.0.8 removed the rm -P alias wasnt smart thing to put in, Version 2.0.7 made the cshrcupdate use fetch because is cleaner. linux cshrcupdate compat is still non existant change rm alias to include -P ("man rm" for details) Version 2.0.6 Remade the TERM set, to allow for term "linux" and "xterm" Combined the nested if's that set lscolor and ls options Fixed problem with loading the .localrc the [ -x ~/.localrc ] has to be [ =f ~/.localrc ] dont know how i missed that Linux Problems: the default ftp program doesnt support auto fetching of files so cshrcupdate doesnt work on linux, Im not shure what program to use for linux. would use fetch but it looks like Linux doesnt have fetch FreeBSD Problems: I have noticed that 4.1 includes color in the deault ls, but the colors are only used if you have the termtype "xterm-color", "cons25", and "linux". So no lscolor for vt100 term. Mabe they will fix this in the future! -------- User can place there own values for things in .cshrc.local so that they will not be erased by a "cshrcupdate" Xterm title bar crap has been taken out Features: Path All normal paths including ~ and ~/bin and . Terminal Detection setting between vt100 and cons25 or linux if detected wrong type the name of the term you want (ex "cons25" sets term to cons25) FreeBSD and Linux support Under FreeBSD File color depends on Permisions Prompt Includes: (ex. "[host]:/usr/blah>") Host and current Dir Color depending on the shell RED ">" at the end while root - tcsh Yellow ">" at the end while root - csh EasyScript Upgrades type "cshrcupdate" and it fetches new .cshrc from ftp Aliases psgrep "greps ps for desired info" whoip "for looking up ip whois info" Settings noclobber - prevents the accidental destruction of files by output redirection watch (Set to report all logins and logouts every minute) filec - command completion in csh ampm - time displayed in ampm format etc (look in the config) Any Questions, please send to: Jason Fried ------ Bash support echo "exit" > .bashrc