From 029d6fab82bd20b326d298d4b76ce44113692efa Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 15 Jun 2015 23:23:20 +0200 Subject: [PATCH] fixes atom plugin to work on ubuntu/linux --- plugins/atom/atom.plugin.zsh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/atom/atom.plugin.zsh b/plugins/atom/atom.plugin.zsh index 9adb9031a..af2911ebe 100644 --- a/plugins/atom/atom.plugin.zsh +++ b/plugins/atom/atom.plugin.zsh @@ -5,10 +5,16 @@ _atom_paths=( ) for _atom_path in $_atom_paths; do - if [[ -a $_atom_path ]]; then - alias at="open -a '$_atom_path'" + if [[ "$OSTYPE" == "linux-gnu" ]]; then + alias at="/usr/bin/atom" + elif [[ -a $_atom_path ]]; then + alias at="open -a '$_atom_path'" break fi done alias att='at .' + + + +