This commit is contained in:
Nikita Bayev 2018-04-17 21:12:16 +00:00 committed by GitHub
commit adcafcf5ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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