mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
13 lines
356 B
Bash
13 lines
356 B
Bash
if [[ "$OSTYPE" = darwin* ]]; then
|
|
local _atom_darwin_paths > /dev/null 2>&1
|
|
_atom_darwin_paths=(
|
|
"/Applications/Atom.app"
|
|
"$HOME/Applications/Atom.app"
|
|
)
|
|
for _atom_path in $_atom_darwin_paths; do
|
|
if [[ -a $_atom_path ]]; then
|
|
alias atom="open -a '$_atom_path'"
|
|
break
|
|
fi
|
|
done
|
|
fi
|