mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
Merge daa2d95260 into 291e96dcd0
This commit is contained in:
commit
61f9b6cf65
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