From GridLAB-D Wiki
# .project_rc: defines useful SVN project functions function project() { if [ -z "$1" ]; then echo ${PROJECT:-No project} elif [ "$1" == "-h" -o "$1" == "--help" ]; then echo 'Syntax: project <name> The project command does the following 1) Executes the project setup file \$HOME/.<name>_project 2) Defines the following commands - trunk [path] changes to the trunk folder - branch #.#[/path] changes to the specified branch folder - ticket #.#[/path] changes to the specified ticket folder ' else . $HOME/.${1}_project fi } function trunk() { if [ -z "$TRUNK" ]; then echo "No project" else cd $TRUNK/$1 pwd fi } function branch() { if [ -z "$TRUNK" ]; then echo "No project" elif [ -d $BRANCH/$1 ]; then cd $BRANCH/$1 pwd else echo "No branch" fi } function ticket() { if [ -z "$TRUNK" ]; then echo "No project" elif [ -d $TICKET/$1 ]; then cd $TICKET/$1 pwd else echo "No ticket" fi }