Date: Tue, 4 Jan 2005 17:19:19 -0600 (CST) From: Jason Fried <jfried@cs.selu.edu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/75826: New port: shells/friedcshrc a shell startup script for tcsh and csh Message-ID: <200501042319.j04NJJrJ099162@omghax.csd.selu.edu> Resent-Message-ID: <200501042320.j04NKPPG004450@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 75826 >Category: ports >Synopsis: New port: shells/friedcshrc a shell startup script for tcsh and csh >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 04 23:20:25 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Jason Fried >Release: FreeBSD 5.2.1-RELEASE i386 >Organization: >Environment: System: FreeBSD omghax.csd.selu.edu 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Mar 29 10:09:28 CST 2004 root@omghax.csd.selu.edu:/usr/src/sys/i386/compile/L33T i386 >Description: This is a shell startup script for use with tcsh and csh, it has some good features. It is used by over 200 people here at SELU. Its along the same lines as the shells/tcshrc port, but taken a userfriendly style. It was developed for use with FreeBSD, but is not exclusive to FreeBSD. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # friedcshrc # friedcshrc/Makefile # friedcshrc/pkg-descr # friedcshrc/pkg-plist # friedcshrc/distinfo # echo c - friedcshrc mkdir -p friedcshrc > /dev/null 2>&1 echo x - friedcshrc/Makefile sed 's/^X//' >friedcshrc/Makefile << 'END-of-friedcshrc/Makefile' X# New ports collection makefile for: friedcshrc X# Date created: 04 January 2005 X# Whom: jfried X# X# $FreeBSD$ X# X XPORTNAME= friedcshrc XPORTVERSION= 1.0b XCATEGORIES= shells XMASTER_SITES= http://cs.selu.edu/~jfried/ XDISTFILES= cshrc.tar.gz dot.cshrc.tar.gz X XMAINTAINER= jfried@cs.selu.edu XCOMMENT= Custom Startup Script for the Tcsh and Csh shells X XIGNOREFILES= cshrc.tar.gz dot.cshrc.tar.gz XNO_BUILD= YES X Xpre-fetch: X @${ECHO_MSG} "Fetching the Current Version of Fried Script" X Xdo-install: X ${CP} -f ${WRKDIR}/dot.cshrc ${PREFIX}/share/skel/ X ${RM} -f ${HOME}/.tcshrc X ${RM} -f ${HOME}/.cshrc X ${CP} -f ${WRKDIR}/.cshrc ${HOME}/.cshrc X Xpost-install: X @${ECHO_MSG} "Installed Fried Script into your home dir" X @${ECHO_MSG} "Any Changes you want to make to the script add them to .cshrc.local in your home dir" X @${ECHO_MSG} "To use friedscript now, type 'source ~/.cshrc' or 'tcsh'" X X.include <bsd.port.mk> END-of-friedcshrc/Makefile echo x - friedcshrc/pkg-descr sed 's/^X//' >friedcshrc/pkg-descr << 'END-of-friedcshrc/pkg-descr' XThis is a startup script I wrote for the tcsh and csh shells. At the Xtime I was using both and I wanted to have the same enviroment on all Xthe unix machines I used. So I wrote this script to give me my custom Xenviroment on FreeBSD,Linux,SunOS,AIX and Darwin. Once I had the script Xon several machines, I notices that they were falling out of sync. And Xthus the enviroments were different, so I setup the 'getupdate' alias Xto grab the latest copy from my website. X XSome of scripts features: X Prompt - The Prompt has been changed to maximize its use. X Colorized - Makes it easy to spot your prompt. X Root Indicator - When you are root the prompt end is red. X User Indicator - The current user name is in the prompt X System Indicator - If your like me you have several systems, this helps X example: [jfried@hostname]:/home/jfried> X X Aliases - Everyday alias to help administration and daily use X psgrep - "psgrep http" - returns proccesses containing http X calc - 'calc "2+2"' easy interface to 'bc' for calculations X reload - reloads the enviroment, as good as starting a new shell instance X Along with other aliases to make your life easier X X- Jason Fried Xjfried@cs.selu.edu END-of-friedcshrc/pkg-descr echo x - friedcshrc/pkg-plist sed 's/^X//' >friedcshrc/pkg-plist << 'END-of-friedcshrc/pkg-plist' Xshare/skel/dot.cshrc END-of-friedcshrc/pkg-plist echo x - friedcshrc/distinfo sed 's/^X//' >friedcshrc/distinfo << 'END-of-friedcshrc/distinfo' XMD5 (cshrc.tar.gz) = IGNORE XMD5 (dot.cshrc.tar.gz) = IGNORE END-of-friedcshrc/distinfo exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501042319.j04NJJrJ099162>