Adding support for Coda2

This commit is contained in:
Nikita Bayev 2014-03-30 13:18:09 +06:00
parent 70dfb91b98
commit ad91239071

16
plugins/coda2/coda.plugin.zsh Executable file
View File

@ -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