diff options
author | Bob Williams <bobwilliams.ii@gmail.com> | 2014-03-22 21:24:52 -0400 |
---|---|---|
committer | Bob Williams <bobwilliams.ii@gmail.com> | 2014-03-22 21:24:52 -0400 |
commit | d70e73294494e68c94879c7bf22f708a3049a9d4 (patch) | |
tree | 696f9a6cb49cab00924942eb5147b99b5fb1798d /plugins/atom/atom.plugin.zsh | |
parent | 5a586670d73dbbda97d124e33398aabf21597659 (diff) | |
parent | 178b5224e830845e45070ef803fcdb5a3f468dca (diff) | |
download | zsh-d70e73294494e68c94879c7bf22f708a3049a9d4.tar.gz zsh-d70e73294494e68c94879c7bf22f708a3049a9d4.tar.bz2 zsh-d70e73294494e68c94879c7bf22f708a3049a9d4.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'plugins/atom/atom.plugin.zsh')
-rw-r--r-- | plugins/atom/atom.plugin.zsh | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/plugins/atom/atom.plugin.zsh b/plugins/atom/atom.plugin.zsh index 048fd7521..9adb9031a 100644 --- a/plugins/atom/atom.plugin.zsh +++ b/plugins/atom/atom.plugin.zsh @@ -1,4 +1,14 @@ -# -# Your guess is as good as mine. Let's just assume that we will need this... -# - For more info visit... http://atom.io/ -#
\ No newline at end of file +local _atom_paths > /dev/null 2>&1 +_atom_paths=( + "$HOME/Applications/Atom.app" + "/Applications/Atom.app" +) + +for _atom_path in $_atom_paths; do + if [[ -a $_atom_path ]]; then + alias at="open -a '$_atom_path'" + break + fi +done + +alias att='at .' |