Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
72974ce4
Commit
72974ce4
authored
Nov 21, 2012
by
Carlos Alexandro Becker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
totvs utils
parent
8871c7a6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
2 deletions
+75
-2
.gitignore
.gitignore
+0
-1
totvs.zsh
custom/totvs.zsh
+74
-0
mvn.plugin.zsh
plugins/mvn/mvn.plugin.zsh
+1
-1
No files found.
.gitignore
View file @
72974ce4
locals.zsh
locals.zsh
log/.zsh_history
log/.zsh_history
projects.zsh
projects.zsh
custom/*
!custom/example
!custom/example
!custom/example.zsh
!custom/example.zsh
*.swp
*.swp
...
...
custom/totvs.zsh
0 → 100644
View file @
72974ce4
#
# Just some utilities for use in ecm development.
#
setopt rmstarsilent
HOME
=
"/home/carlos"
ECM_WS
=
"
$HOME
/totvs/ws"
ECM_JBOSS
=
"
$HOME
/Public/ecm/JBoss-7.1.1"
ECM_PORT
=
"8080"
VOLDEMORT
=
$ECM_WS
/voldemort
ECM
=
$ECM_WS
/ecm
INSTALLER
=
"n"
# fuckin aliases
alias
ecmu
=
ecmup
alias
ecmb
=
ecmbuild
alias
ecmc
=
ecmclean
alias
ecms
=
ecmstart
alias
ecmo
=
ecmstop
alias
ecm
=
goecm
# update ecm
ecmup
()
{
echo
"update all the things!"
cd
$VOLDEMORT
&&
svn up
cd
$ECM
&&
svn up
}
# build it!
ecmbuild
()
{
vared
-p
'build? no problem sir, do you want a installer? (y/N) '
INSTALLER
cd
$VOLDEMORT
&&
mvncie
cd
$VOLDEMORT
/social-ecm
cd
$VOLDEMORT
/wcm
&&
mvncie
cd
$ECM
/ecm/wecmpackage
&&
mvncie
cd
$VOLDEMORT
/ecm
&&
mvncie
if
[[
$INSTALLER
-eq
'n'
]]
;
then
cd
$VOLDEMORT
/ecm/installer
mvnci
-am
-Drun
=
installer
-DLinux64
=
true
-DappServer
=
jboss
else
cd
$VOLDEMORT
/ecm/build
&&
mvnci
cd
$VOLDEMORT
/social-ecm/build
&&
mvnci
fi
}
# clean jboss trash folders
ecmclean
()
{
echo
"cleaning jboss shit"
rm
-rf
$ECM_JBOSS
/standalone/
{
deployments/
*
,log,tmp
}
2> /dev/null
}
# start jboss server
ecmstart
()
{
echo
"starting jboss"
JAVA_OPTS
=
"-Xmx2048m -XX:MaxPermSize=512m -DzkRun -Dbootstrap_conf=true"
$ECM_JBOSS
/bin/standalone.sh
}
# stop jboss (usually on 8080)
ecmstop
()
{
echo
"kill jboss (or whatever you are running on 8080"
fuser
-k
$ECM_PORT
/tcp
}
# do all the things
goecm
()
{
echo
"serious business here. let's have a coffee.."
ecmstop
ecmclean
ecmbuild
&&
ecmup
&&
ecmstart
}
plugins/mvn/mvn.plugin.zsh
View file @
72974ce4
...
@@ -37,7 +37,7 @@ mvn-color()
...
@@ -37,7 +37,7 @@ mvn-color()
}
}
# Override the mvn command with the colorized one.
# Override the mvn command with the colorized one.
alias
mvn
=
"mvn-color"
#
alias mvn="mvn-color"
# aliases
# aliases
alias
mvncie
=
'mvn clean install eclipse:eclipse'
alias
mvncie
=
'mvn clean install eclipse:eclipse'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment