Permalink
Browse files

Simplify command

  • Loading branch information...
1 parent b6048c3 commit 41d3bd55d806fa4e86bb073e5298efb8b8a5da61 @sanemat committed Jun 10, 2012
Showing with 7 additions and 6 deletions.
  1. +7 −6 .bashrc
View
13 .bashrc
@@ -36,7 +36,7 @@ function t() {
export _JAVA_OPTIONS="-Dfile.encoding=UTF-8"
alias be='bundle exec'
-alias svngrep="svn grep"
+alias svngrep="grep --exclude='*.svn-*' --exclude='entries'"
alias rvenv='rbenv'
alias pup="plackup -MPlack::App::Directory -e 'Plack::App::Directory->new({root=>\".\"})->to_app' -p 3000"
git() {
@@ -51,13 +51,14 @@ git() {
svn() {
if [[ $1 == stauts ]]
then
- local remains=$(echo $* | sed -e 's!stauts!!')
- command svn status $remains
+ shift
+ command svn status "$@"
elif [[ $1 == grep ]]
then
- local remains=$(echo $* | sed -e 's!grep!!')
- command grep --exclude='*.svn-*' --exclude='entries' $remains
+ shift
+ shift
+ command svngrep "$@"
else
- command svn $*
+ command svn "$@"
fi
}

0 comments on commit 41d3bd5

Please sign in to comment.