From ad91239071c2d31f69eee18ad448d11cde6c89d0 Mon Sep 17 00:00:00 2001 From: Nikita Bayev Date: Sun, 30 Mar 2014 13:18:09 +0600 Subject: [PATCH] Adding support for Coda2 --- plugins/coda2/coda.plugin.zsh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 plugins/coda2/coda.plugin.zsh diff --git a/plugins/coda2/coda.plugin.zsh b/plugins/coda2/coda.plugin.zsh new file mode 100755 index 00000000..6583948c --- /dev/null +++ b/plugins/coda2/coda.plugin.zsh @@ -0,0 +1,16 @@ +# Coda 2 Alias + +if [[ $('uname') == 'Darwin' ]]; then + local _coda_darwin_paths > /dev/null 2>&1 + _coda_darwin_paths=( + "/usr/local/bin/coda" # if coda-cli is installed + "/Applications/Coda 2.app" + ) + + for _coda_path in $_coda_darwin_paths; do + if [[ -a $_coda_path ]]; then + alias coda="'$_coda_path'" + break + fi + done +fi