atom.plugin.zsh 269 B

1234567891011121314
  1. local _atom_paths > /dev/null 2>&1
  2. _atom_paths=(
  3. "$HOME/Applications/Atom.app"
  4. "/Applications/Atom.app"
  5. )
  6. for _atom_path in $_atom_paths; do
  7. if [[ -a $_atom_path ]]; then
  8. alias at="open -a '$_atom_path'"
  9. break
  10. fi
  11. done
  12. alias att='at .'