Adding support for Coda2
This commit is contained in:
parent
70dfb91b98
commit
ad91239071
16
plugins/coda2/coda.plugin.zsh
Executable file
16
plugins/coda2/coda.plugin.zsh
Executable 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
|
Loading…
Reference in New Issue
Block a user