summaryrefslogtreecommitdiff
path: root/plugins/atom/atom.plugin.zsh
blob: 9adb9031a0e9c61c113a0e210531f5f3fdc5f4e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 .'