summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-05-29 14:57:33 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-05-29 14:57:33 +0100
commit06fe962504cd130e53c1eec14525ff00d333b7e0 (patch)
tree3cc00349bebdb4745d21656824a757f2113643eb /bashrc
parentFunction for coverage reports (diff)
downloadutil-06fe962504cd130e53c1eec14525ff00d333b7e0.tar.bz2
util-06fe962504cd130e53c1eec14525ff00d333b7e0.tar.xz
util-06fe962504cd130e53c1eec14525ff00d333b7e0.zip
Use functions instead of aliases for vcs diffs
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc20
1 files changed, 15 insertions, 5 deletions
diff --git a/bashrc b/bashrc
index 139403f..8560037 100644
--- a/bashrc
+++ b/bashrc
@@ -51,15 +51,25 @@ alias build='b2 -j$CORES $TARGET'
alias autobuild="build ; while inotifywait -qr . --exclude '/bin/|\.sw.|/\.git/' -e modify ; do clear ; printf '\e[3J' ; build ; done"
# CVS
export CVSROOT=":pserver:danielg@hawking.howden.press.net:/usr/local/src/CVS_SOURCE_TREE"
-alias cvsd='diffWith "cvs diff -wubB"'
+cvsd() {
+ diffWith "cvs diff -wubB $@"
+}
# SVN
-alias svnd='diffWith "svn diff --force --no-diff-deleted -x -b"'
+svnd() {
+ diffWith "svn diff --force --no-diff-deleted -x -b $@"
+}
# Git
-alias gitd='diffWith "git diff --no-prefix --relative -b -M"'
-alias gitdc='diffWith "git diff --cached --no-prefix --relative -b -M"'
+gitd() {
+ diffWith "git diff --no-prefix --relative -b -M $@"
+}
+gitdc() {
+ diffWith "git diff --cached --no-prefix --relative -b -M $@"
+}
alias gst='git status'
# Hg
-alias hgd='diffWith "hg diff -p -b"'
+hgd() {
+ diffWith "hg diff -p -b $@"
+}
# Java
PATH=$JAVA_HOME/bin:$PATH
export CATALINA_HOME="/usr/share/tomcat-5.5/"