summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2021-08-27 11:37:22 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2021-08-27 11:37:22 +0100
commit22aa08dbb88e4ceca4a4a5206b3e48bb354c42d7 (patch)
tree5040257e442bb376de75853291c140191f1ffb0d
parentEnable fancy prompts (diff)
downloadutil-22aa08dbb88e4ceca4a4a5206b3e48bb354c42d7.tar.bz2
util-22aa08dbb88e4ceca4a4a5206b3e48bb354c42d7.tar.xz
util-22aa08dbb88e4ceca4a4a5206b3e48bb354c42d7.zip
Put diffs in bin folder
Is this better? Sure I did it for a reason
-rw-r--r--bashrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index 2f2c908..ffee64f 100644
--- a/bashrc
+++ b/bashrc
@@ -18,7 +18,8 @@ safedir() {
diffWith() {
diffCmd=$@
- diffFile="/tmp/diffwith-$(safedir $diffCmd).patch"
+ mkdir -p bin
+ diffFile="bin/diffwith-$(safedir $diffCmd).patch"
$diffCmd > $diffFile
dos2unix -q $diffFile
( $EDITOR $diffFile ; rm -f $diffFile ) &