mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Added Atom plugin for Mac OS X
This commit is contained in:
parent
75f2f4e027
commit
daa2d95260
1 changed files with 13 additions and 0 deletions
13
plugins/atom/atom.plugin.zsh
Normal file
13
plugins/atom/atom.plugin.zsh
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue