From 71f1e4bc0d8d1dc9db8e9ff67a7715953397fe46 Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Wed, 11 Mar 2015 11:06:25 +0100 Subject: [PATCH] Add Araxis Merge plugin Signed-off-by: Gregor Jasny --- plugins/araxis-merge/README.md | 11 +++++++++++ plugins/araxis-merge/araxis-merge.plugin.zsh | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 plugins/araxis-merge/README.md create mode 100644 plugins/araxis-merge/araxis-merge.plugin.zsh diff --git a/plugins/araxis-merge/README.md b/plugins/araxis-merge/README.md new file mode 100644 index 00000000..a1225f94 --- /dev/null +++ b/plugins/araxis-merge/README.md @@ -0,0 +1,11 @@ +## araxis-merge + +Plugin for Araxis Merge, an advanced 2 and 3-way file comparison (diff), merging and folder synchronization tool. + +### Requirements + + * [Araxis Merge](http://www.araxis.com/merge/) + +### Usage + + * When this plugin is enabled the Araxis Merge utilities are added to `PATH` diff --git a/plugins/araxis-merge/araxis-merge.plugin.zsh b/plugins/araxis-merge/araxis-merge.plugin.zsh new file mode 100644 index 00000000..ed1b2c00 --- /dev/null +++ b/plugins/araxis-merge/araxis-merge.plugin.zsh @@ -0,0 +1,16 @@ +# Araxis Merge Utilities + +if [[ "$OSTYPE" = darwin* ]]; then + local _araxis_merge_darwin_paths > /dev/null 2>&1 + _araxis_merge_darwin_paths=( + "$HOME/Applications/Araxis Merge.app/Contents/Utilities" + "/Applications/Araxis Merge.app/Contents/Utilities" + ) + + for _araxis_merge_path in $_araxis_merge_darwin_paths; do + if [[ -d "$_araxis_merge_path" ]]; then + export PATH="${_araxis_merge_path}":$PATH + break + fi + done +fi