From 06fe962504cd130e53c1eec14525ff00d333b7e0 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 29 May 2017 14:57:33 +0100 Subject: Use functions instead of aliases for vcs diffs --- bashrc | 20 +++++++++++++++----- 1 file 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/" -- cgit v1.2.3