Return to Snippet

Revision: 3119
at October 2, 2007 18:50 by thebugslayer


Updated Code
#Bash shell startup script by Zemian Deng

#Setup: source this file in $HOME/.bashrc with following block
#if [ -f ~/scripts/my.bashrc ]; then
#    . ~/scripts/my.bashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$HOME/scripts:\
$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
/opt/javautil/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep -v grep | grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmod a+x'
alias myip='nslookup `hostname`'
alias reload='exec bash'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='echo mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=cnx -DartifactId=mywebapp'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'
alias svns='svn st'
alias svnc='svn commit . -m'
alias svnu='svn update .'
alias svna='$HOME/scripts/svnadd.groovy'
alias svnr='$HOME/scripts/svnremove.groovy'
alias m='mate'
alias mb='mate $HOME/scripts/my.bashrc'
alias ms='mate $HOME/scripts'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias cdtom='cd /opt/tomcat'
alias sshfirebird='ssh [email protected]'
alias sshhub='ssh [email protected]'

Revision: 3118
at October 2, 2007 15:15 by thebugslayer


Updated Code
#Bash shell startup script by Zemian Deng

#Setup: source this file in $HOME/.bashrc with following block
#if [ -f ~/scripts/.mybashrc ]; then
#    . ~/scripts/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$HOME/scripts:\
$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
/opt/javautil/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep -v grep | grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmod a+x'
alias myip='nslookup `hostname`'
alias reload='exec bash'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='echo mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=cnx -DartifactId=mywebapp'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'
alias svns='svn st'
alias svnc='svn commit . -m'
alias svnu='svn update .'
alias svna='$HOME/scripts/svnadd.groovy'
alias svnr='$HOME/scripts/svnremove.groovy'
alias m='mate'
alias mb='mate $HOME/scripts/.mybashrc'
alias ms='mate $HOME/scripts'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias cdtom='cd /opt/tomcat'
alias sshfirebird='ssh [email protected]'
alias sshhub='ssh [email protected]'

Revision: 3117
at October 2, 2007 15:13 by thebugslayer


Updated Code
#Bash shell startup script by Zemian Deng

#Setup: source this file in $HOME/.bashrc with following block
#if [ -f ~/scripts/.mybashrc ]; then
#    . ~/scripts/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$HOME/scripts:\
$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep -v grep | grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmod a+x'
alias myip='nslookup `hostname`'
alias reload='exec bash'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='echo mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=cnx -DartifactId=mywebapp'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'
alias svns='svn st'
alias svnc='svn commit . -m'
alias svnu='svn update .'
alias svna='$HOME/scripts/svnadd.groovy'
alias svnr='$HOME/scripts/svnremove.groovy'
alias m='mate'
alias mb='mate $HOME/scripts/.mybashrc'
alias ms='mate $HOME/scripts'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias cdtom='cd /opt/tomcat'
alias sshfirebird='ssh [email protected]'
alias sshhub='ssh [email protected]'

Revision: 3116
at October 2, 2007 12:14 by thebugslayer


Updated Code
#Bash shell startup script by Zemian Deng

#Setup: source this file in $HOME/.bashrc with following block
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$HOME/scripts:\
$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep -v grep | grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmod a+x'
alias myip='nslookup `hostname`'
alias reload='exec bash'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='echo mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=cnx -DartifactId=mywebapp'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'
alias svns='svn st'
alias svnc='svn commit . -m'
alias svnu='svn update .'
alias svna='$HOME/scripts/svnadd.groovy'
alias svnr='$HOME/scripts/svnremove.groovy'
alias m='mate'
alias mb='mate $HOME/.mybashrc'
alias ms='mate $HOME/scripts'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias cdtom='cd /opt/tomcat'
alias sshfirebird='ssh [email protected]'
alias sshhub='ssh [email protected]'

Revision: 3115
at October 2, 2007 12:12 by thebugslayer


Updated Code
#Bash shell startup script by Zemian Deng

#Setup: source this file in $HOME/.bashrc with following block
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$HOME/scripts:\
$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmod a+x'
alias myip='nslookup `hostname`'
alias reload='exec bash'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='echo mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=cnx -DartifactId=mywebapp'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'
alias svns='svn st'
alias svnc='svn commit . -m'
alias svnu='svn update .'
alias svna='$HOME/scripts/svnadd.groovy'
alias svnr='$HOME/scripts/svnremove.groovy'
alias m='mate'
alias mb='mate $HOME/.mybashrc'
alias ms='mate $HOME/scripts'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias cdtom='cd /opt/tomcat'
alias sshfirebird='ssh [email protected]'
alias sshhub='ssh [email protected]'

Revision: 3114
at October 2, 2007 12:08 by thebugslayer


Updated Code
#Bash shell startup script by Zemian Deng

#Setup: source this file in $HOME/.bashrc with following block
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$HOME/scripts:\
$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmod a+x'
alias myip='nslookup `hostname`'
alias reload='exec bash'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='echo mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=cnx -DartifactId=mywebapp'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'
alias svns='svn st'
alias svnc='svn commit . -m'
alias svnu='svn update .'
alias svna='$HOME/scripts/svnadd.groovy'
alias svnr=''$HOME/scripts/svnremove.groovy'
alias m='mate'
alias mb='mate $HOME/.mybashrc'
alias ms='mate $HOME/scripts'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias cdtom='cd /opt/tomcat'
alias sshfirebird='ssh [email protected]'
alias sshhub='ssh [email protected]'

Revision: 3113
at October 2, 2007 12:04 by thebugslayer


Updated Code
#Bash shell startup script by Zemian Deng

#Setup: source this file in $HOME/.bashrc with following block
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$HOME/scripts:\
$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmod a+x'
alias myip='nslookup `hostname`'
alias reload='exec bash'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='echo mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=cnx -DartifactId=mywebapp'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'
alias svns='svn st'
alias svnc='svn commit . -m'
alias svnu='svn update .'
alias svna='$HOME/scripts/svnadd.groovy'
alias svnr=''$HOME/scripts/svnremove.groovy'
alias col=''$HOME/scripts/column.groovy'
alias m='mate'
alias mb='mate $HOME/.mybashrc'
alias ms='mate $HOME/scripts'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias cdtom='cd /opt/tomcat'
alias sshfirebird='ssh [email protected]'
alias sshhub='ssh [email protected]'

Revision: 3112
at October 2, 2007 07:47 by thebugslayer


Updated Code
#Bash shell startup script by Zemian Deng

#Setup: source this file in $HOME/.bashrc with following block
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmod a+x'
alias myip='nslookup `hostname`'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='echo mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=cnx -DartifactId=mywebapp'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'
alias svns='svn st'
alias svnc='svn commit . -m'
alias svnu='svn update .'
alias svna='/opt/scripts/svnadd.groovy'
alias svnr='/opt/scripts/svnremove.groovy'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias cdtom='cd /opt/tomcat'
alias sshfirebird='ssh [email protected]'

Revision: 3111
at October 1, 2007 07:48 by thebugslayer


Updated Code
#Bash shell startup script by Zemian Deng

#Setup: source this file in $HOME/.bashrc with following block
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmod a+x'
alias myip='nslookup `hostname`'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='echo mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=cnx -DartifactId=mywebapp'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias cdtom='cd /opt/tomcat'
alias sshfirebird='ssh [email protected]'

Revision: 3110
at October 1, 2007 07:45 by thebugslayer


Updated Code
#Bash shell startup script by Zemian Deng

#Setup: source this file in $HOME/.bashrc with following block
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmod a+x'
alias myip='nslookup `hostname`'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='echo mvn archetype:create -DarchtypeArtifactId=maven-archetype-webapp -DgroupId=cnx -DartifactId=mywebapp'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias cdtom='cd /opt/tomcat'
alias sshfirebird='ssh [email protected]'

Revision: 3109
at October 1, 2007 06:59 by thebugslayer


Updated Code
#Bash shell startup script by Zemian Deng

#Setup: source this file in $HOME/.bashrc with following block
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmod a+x'
alias myip='nslookup `hostname`'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='mvn archetype:create -DgroupId=cnx -DartifactId='
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias cdtom='cd /opt/tomcat'
alias sshfirebird='ssh [email protected]'

Revision: 3108
at October 1, 2007 06:50 by thebugslayer


Updated Code
#Bash shell startup script by Zemian Deng

#Setup: source this file in $HOME/.bashrc with following block
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmow a+x'
alias myip='nslookup `hostname`'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='mvn archetype:create -DgroupId=cnx -DartifactId='
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias cdtom='cd /opt/tomcat'
alias sshfirebird='ssh [email protected]'

Revision: 3107
at October 1, 2007 06:49 by thebugslayer


Updated Code
#Bash shell startup script by Zemian Deng

#Setup: source this file in $HOME/.bashrc with following block
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmow a+x'
alias myip='nslookup `hostname`'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='mvn archetype:create -DgroupId=cnx -DartifactId='
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias sshfirebird='ssh [email protected]'
alias sshhub='ssh [email protected]'

Revision: 3106
at October 1, 2007 06:46 by thebugslayer


Updated Code
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias sdate='date +%d-%b-%Y'
alias mdate='date +%d-%b-%Y_%H%M'
alias ldate='date +%a_%d-%b-%Y_%H%M'
alias psg='ps auxwww|grep'
alias hd='od -Ax -tx1z -v'
alias printpath='readlink -f'
alias tar='tar -vf'
alias rsync='rsync -va'
alias chmodx='chmow a+x'
alias myip='nslookup `hostname'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='mvn archetype:create -DgroupId=cnx -DartifactId='
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias sshfirebird='ssh [email protected]'
alias sshhub='ssh [email protected]'

Revision: 3105
at October 1, 2007 06:30 by thebugslayer


Updated Code
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export MAVEN2_HOME=/opt/maven2
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

export PATH=$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$MAVEN2_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

# System shell commands
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias date='date +%m%d%Y'
alias datex='date +%m%d%Y%H%M%S'
alias psg='ps auxwww|grep'

# Application specfic commands
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvncreate='mvn archetype:create -DgroupId=cnx -DartifactId='
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'

# Platform specific commands
alias p='cd ~/Desktop/projects'
alias cdopt='cd /opt'
alias sshfirebird='ssh [email protected]'
alias sshhub='ssh [email protected]'

Revision: 3104
at September 30, 2007 18:47 by thebugslayer


Updated Code
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

PATH=/usr/local/mysql/bin/:\
$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

function trash(){
	if [ ! -e ~/.trash ]; then
		mkdir ~/.trash
	fi
	for x in "[email protected]"; do
		d=`echo $x | awk '{gsub(/\/$/, ""); print}'`; #strip ending slash
		if [ -e ~/.trash/$d ]; then
			d=${d}.`date +%m%d%Y%H%M%S` #prevent duplicated trashed item
		fi
		/bin/mv -v $x ~/.trash/$d
	done
}

alias t='trash'
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias p='cd ~/Desktop/projects'
alias o='cd /opt'
alias d='date +%m%d%Y'
alias dt='date +%m%d%Y%H%M%S'
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysqlr='mysql -u root'
alias psg='ps auxwww|grep'

Revision: 3103
at September 29, 2007 13:39 by thebugslayer


Updated Code
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

PATH=/usr/local/mysql/bin/:\
$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

function trash(){
	if [ ! -e ~/.trash ]; then
		mkdir ~/.trash
	fi
	for x in "[email protected]"; do
		d=`echo $x | awk '{gsub(/\/$/, ""); print}'`; #strip ending slash
		if [ -e ~/.trash/$d ]; then
			d=${d}.`date +%m%d%Y%H%M%S` #prevent duplicated trashed item
		fi
		/bin/mv -v $x ~/.trash/$d
	done
}

alias t='trash'
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias p='cd ~/Desktop/projects'
alias o='cd /opt'
alias d='date +%m%d%Y'
alias dt='date +%m%d%Y%H%M%S'
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysql='mysql -u root'
alias psg='ps auxwww|grep'

Revision: 3102
at September 29, 2007 05:16 by thebugslayer


Updated Code
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

PATH=/usr/local/mysql/bin/:\
$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

function trash(){
	if [ ! -e ~/.trash ]; then
		mkdir ~/.trash
	fi
	for x in "[email protected]"; do
		d=`echo $x | awk '{gsub(/\/$/, ""); print}'`; #strip ending slash
		if [ -e ~/.trash/$d ]; then
			d=${d}.`date +%m%d%Y%H%M%S` #prevent duplicated trashed item
		fi
		/bin/mv -v $x ~/.trash/$d
	done
}

alias t='trash'
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias p='cd ~/Desktop/projects'
alias o='cd /opt'
alias d='date +%m%d%Y'
alias dt='date +%m%d%Y%H%M%S'
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'
alias mysql='mysql -u root'

Revision: 3101
at September 29, 2007 04:45 by thebugslayer


Updated Code
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

PATH=/usr/local/mysql/bin/:\
$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

function trash(){
	if [ ! -e ~/.trash ]; then
		mkdir ~/.trash
	fi
	for x in "[email protected]"; do
		d=`echo $x | awk '{gsub(/\/$/, ""); print}'`; #strip ending slash
		if [ -e ~/.trash/$d ]; then
			d=${d}.`date +%m%d%Y%H%M%S` #prevent duplicated trashed item
		fi
		/bin/mv -v $x ~/.trash/$d
	done
}

alias t='trash'
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias p='cd ~/Desktop/projects'
alias o='cd /opt'
alias d='date +%m%d%Y'
alias dt='date +%m%d%Y%H%M%S'
alias eclipse='/opt/eclipse/eclipse&'
alias svnu='svn update'
alias svnc='svn ci . -m'
alias mvnc='mvn clean eclipse:clean'
alias mvne='mvn eclipse:m2eclipse -Dwtpversion=1.5'

Revision: 3100
at September 24, 2007 21:06 by thebugslayer


Updated Code
#if [ -f ~/.mybashrc ]; then
#    . ~/.mybashrc
#fi

export SVN_EDITOR=vim
export JAVA_HOME=/opt/java
export GROOVY_HOME=/opt/groovy
export GRAILS_HOME=/opt/grails
export MAVEN_HOME=/opt/maven
export ANT_HOME=/opt/ant
export CATALINA_HOME=/opt/tomcat

PATH=/usr/local/mysql/bin/:\
$JAVA_HOME/bin:\
$GROOVY_HOME/bin:\
$GRAILS_HOME/bin:\
$MAVEN_HOME/bin:\
$ANT_HOME/bin:\
$CATALINA_HOME/bin:\
$PATH

function trash(){
	if [ ! -e ~/.trash ]; then
		mkdir ~/.trash
	fi
	for x in "[email protected]"; do
		d=`echo $x | awk '{gsub(/\/$/, ""); print}'`; #strip ending slash
		if [ -e ~/.trash/$d ]; then
			d=${d}.`date +%m%d%Y%H%M%S` #prevent duplicated trashed item
		fi
		/bin/mv -v $x ~/.trash/$d
	done
}

alias t='trash'
alias cp='cp -rvf'
alias mv='mv -vf'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias f='find . -name'
alias s='sort'
alias p='cd ~/Desktop/projects'
alias o='cd /opt'
alias d='date +%m%d%Y'
alias dt='date +%m%d%Y%H%M%S'

Revision: 3099
at June 4, 2007 06:00 by thebugslayer


Initial Code
# .bashrc - Zemian Custom Bash Login Script.
#
# $Id$
# :tabSize=2:indexSize=2:

### Create and export CLASSPATH string with all jar found in specified dir.
mkcp () {
        #Always add current working dir as CP
        CLASSPATH=`pwd`
        paths[0]=$CLASSPATH
        
        #Process all arguments and resolve them to absolute path
        i=1
        for arg in [email protected]; do
                if [[ -d $arg ]]; then
                        paths[i++]=`cd $arg && pwd`
                fi
        done
        
        #Search jar, or use dir if not found any.
        for p in ${paths[@]}; do                
                echo "[Searching $p ...]"
                CP=
                for jarfile in `find $p -name "*.jar"`; do
                        if [[ -f $jarfile && -z $CP ]]; then
                                CP=$jarfile
                        elif [[ -f $jarfile ]]; then
                                CP=$jarfile:$CP
                        fi                      
                done
                
                #Check result
                if [[ -z $CP && "$p" != "${paths[0]}" ]]; then
                        CLASSPATH=$CLASSPATH:$p
                elif [[ !(-z $CP) ]]; then
                        CLASSPATH=$CLASSPATH:$CP
                fi
        done
        
        #for Ant developement sake
        if [[ -d "${paths[0]}/build/classes" ]]; then
                echo "Adding build/class"
                CLASSPATH=${paths[0]}/build/classes:$CLASSPATH
        fi
        
        # append current directly
        CLASSPATH=.:$CLASSPATH
        
        echo "==>Exporting CLASSPATH:"
        echo $CLASSPATH
        export CLASSPATH
}

### Munge string entry into PATH variable
pathmunge () {
        if ! echo $PATH | egrep -q "(^|:)$1($|:)" ; then
                if [ "$2" = "after" ] ; then
                        PATH=$PATH:$1
                else
                        PATH=$1:$PATH
                fi
        fi
}
export -f pathmunge

### rm args and placed into a trash dir.
trash () {
        mv -vf "[email protected]" ~/.Trash
}
export -f trash
mkdir -p ~/.Trash
#alias rm='trash'

### Quickly duplicate args with backup name appended.
backup(){
        timestamp=`date "+%m%d%y%H%M%S"`
        for filename in "[email protected]"; do 
                dest=$filename.$timestamp.bak
                cp -Rf $filename $dest
        done
}

### Set prompt
export PS1='\[email protected]\h[\W] \$ '
export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'

### Common used commands shortcuts.
alias ll="ls -lH"

### Tools export ENV
export SVN_EDITOR=vim

## Java Application Env
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
export CATALINA_BASE=/opt/tomcat/host/local
export GRAILS_HOME=/opt/grails-0.5

pathmunge /usr/local/bin
pathmunge /usr/local/mysql/bin
pathmunge ~/bin
pathmunge /opt/cmdlinetool/bin
pathmunge /opt/jruby-0.9.8/bin after
pathmunge /opt/maven-2.0.6/bin after
pathmunge /opt/groovy/bin
pathmunge /opt/grails-0.5/bin

path(){
        echo $PATH|ruby -pe 'gsub(/:/, "\n")'
}
export -f path

Initial URL


Initial Description
Usage: save the script to ~/scripts/my.bashrc and then source it in .bashrc.

Initial Title
my version of simple my.bashrc login script.

Initial Tags
login, Bash

Initial Language
Bash