fixes atom plugin to work on ubuntu/linux

This commit is contained in:
Max 2015-06-15 23:23:20 +02:00
commit 029d6fab82

View file

@ -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 .'