0516a39dec64568f6db194d143a0ae2969c3cf9b

Author
Rob Loach <robloach@gmail.com>
Committer
Rob Loach <robloach@gmail.com>
Date

Message

Remove Atom plugin

The Atom plugin is obsolete.

See #3193

Diff

 1diff --git a/plugins/atom/README.md b/plugins/atom/README.md
 2deleted file mode 100644
 3index 6350c647b029ef0ca2416c6dcfe976a63e1d1534..0000000000000000000000000000000000000000
 4--- a/plugins/atom/README.md
 5+++ /dev/null
 6@@ -1,23 +0,0 @@
 7-## atom
 8-
 9-This plugin makes "at" a useful function for invoking the Atom Editor.
10-
11-Originally by Github user [aforty](https://github.com/aforty) for OSX, modified to alias 'at' to 'atom' for Linux, since atom already works on the terminal for Linux, and calling 'at' in a non-OSX environment should still work.
12-
13-### Requirements
14-
15- * [Atom](https://atom.io/)
16-
17-### Usage
18-
19- * If `at` command is called without an argument, launch Atom
20-
21- * If `at` is passed a directory, open it in Atom
22-
23- * If `at` is passed a file, open it in Atom
24-
25-### Examples
26-
27- * Open the current dir in atom: `at .`
28- * Open another dir in atom: `at path/to/folder`
29- * Open a file: `at filename.extension`
30diff --git a/plugins/atom/atom.plugin.zsh b/plugins/atom/atom.plugin.zsh
31deleted file mode 100644
32index 2711cf0e8967276380d0441e43cbf112af9cea56..0000000000000000000000000000000000000000
33--- a/plugins/atom/atom.plugin.zsh
34+++ /dev/null
35@@ -1,37 +0,0 @@
36-case $OSTYPE in
37-darwin*)
38-    local _atom_paths > /dev/null 2>&1
39-    _atom_paths=(
40-        "$HOME/Applications/Atom.app"
41-        "/Applications/Atom.app"
42-    )
43-
44-    for _atom_path in $_atom_paths; do
45-        if [[ -a $_atom_path ]]; then
46-            alias at="open -a '$_atom_path'"
47-            break
48-        fi
49-    done
50-    ;;
51-cygwin)
52-    local _atom_path > /dev/null 2>&1
53-
54-    _atom_path=${LOCALAPPDATA}/atom/bin/atom
55-
56-    if [[ -a $_atom_path ]]; then
57-        cyg_open_atom()
58-        {
59-            if [[ -n $1 ]]; then
60-                ${_atom_path} `cygpath -w -a $1`
61-            else
62-                ${_atom_path}
63-            fi
64-        }
65-
66-        alias at=cyg_open_atom
67-    fi
68-    ;;
69-linux*)
70-    # Alerts the user if 'atom' is not a found command.
71-    type atom >/dev/null 2>&1 && alias at="atom" || { echo >&2 "You have enabled the atom oh-my-zsh plugin on Linux, but atom is not a recognized command. Please make sure you have it installed before using this plugin."; }
72-esac