oh-my-zsh/plugins/coda2/coda.plugin.zsh
2014-03-30 13:18:09 +06:00

17 lines
389 B
Bash
Executable File

# 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