6d616de6f1a9046de75198959a55e96e110b38f0

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #2637 from aforty/master

Atom plugin

Diff

 1diff --git a/plugins/atom/atom.plugin.zsh b/plugins/atom/atom.plugin.zsh
 2index 048fd75219fd48d3e4d0b6d0caf29d091c350d68..9adb9031a0e9c61c113a0e210531f5f3fdc5f4e2 100644
 3--- a/plugins/atom/atom.plugin.zsh
 4+++ b/plugins/atom/atom.plugin.zsh
 5@@ -1,4 +1,14 @@
 6-#
 7-# Your guess is as good as mine. Let's just assume that we will need this...
 8-#   - For more info visit... http://atom.io/
 9-#
10+local _atom_paths > /dev/null 2>&1
11+_atom_paths=(
12+    "$HOME/Applications/Atom.app"
13+    "/Applications/Atom.app"
14+)
15+
16+for _atom_path in $_atom_paths; do
17+    if [[ -a $_atom_path ]]; then
18+        alias at="open -a '$_atom_path'"
19+        break
20+    fi
21+done
22+
23+alias att='at .'