From 998adfd63c148f7b9656f0dcede7e3ad6f887e19 Mon Sep 17 00:00:00 2001 From: wyldphyre Date: Fri, 27 Feb 2015 10:56:14 +0800 Subject: [PATCH 1/4] Added README.md file --- plugins/history/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 plugins/history/README.md diff --git a/plugins/history/README.md b/plugins/history/README.md new file mode 100644 index 000000000..dd9286894 --- /dev/null +++ b/plugins/history/README.md @@ -0,0 +1,15 @@ +## history + +Provides a couple of convenient aliases for using the `history` command to examine your command line history. + +### Requirements + +* None. + +### Usage + +* If `h` is called, your command history is listed. Equivalent to using `history` + +* If `hsi` is called with an argument, a **case insensitive** `grep` search is performed on your command history, looking for commands that match the argument provided + +* If `hsi` is called without an argument you will help on `grep` arguments \ No newline at end of file From 5f0d9b713384cd9a2c1ff9eb78d10b93e474fb8b Mon Sep 17 00:00:00 2001 From: wyldphyre Date: Fri, 27 Feb 2015 11:05:05 +0800 Subject: [PATCH 2/4] Added README.md file for atom plugin --- plugins/atom/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 plugins/atom/README.md diff --git a/plugins/atom/README.md b/plugins/atom/README.md new file mode 100644 index 000000000..75d77a0ac --- /dev/null +++ b/plugins/atom/README.md @@ -0,0 +1,17 @@ +## atom + +Plugin for Atom, a cross platform text and code editor, available for Linux, Mac OS X, and Windows. + +### Requirements + + * [Atom](https://atom.io/) + +### Usage + + * If `at` command is called without an argument, launch Atom + + * If `at` is passed a directory, `cd` to it and open it in Atom + + * If `at` is passed a file, open it in Atom + + * if `att` command is called, it is equivalent to `at .`, opening the current folder in Atom From 93e0c9507f94b247026762aa0dd84d5548ec7058 Mon Sep 17 00:00:00 2001 From: wyldphyre Date: Fri, 27 Feb 2015 13:38:31 +0800 Subject: [PATCH 3/4] Added README.md file for ForkLift plugin --- plugins/forklift/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 plugins/forklift/README.md diff --git a/plugins/forklift/README.md b/plugins/forklift/README.md new file mode 100644 index 000000000..b452a357c --- /dev/null +++ b/plugins/forklift/README.md @@ -0,0 +1,13 @@ +## forklift + +Plugin for ForkLift, an FTP application for OS X. + +### Requirements + +* [ForkLift](http://forkliftapp.com/forklift/) + +### Usage + +* If `fl` is called without arguments then the current folder is opened in ForkLift. Is equivalent to `fl .` + +* If `fl` is called with a directory as the argument, then that directory is opened in ForkLift \ No newline at end of file From 1631d7cc3c6fc770b01b4ee95220b8aa3c4f39fb Mon Sep 17 00:00:00 2001 From: Craig Reynolds Date: Sun, 29 Nov 2015 21:16:22 +0800 Subject: [PATCH 4/4] Plugin for Visual Studio Code --- plugins/vscode/README.md | 17 +++++++++++++++++ plugins/vscode/vscode.plugin.zsh | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 plugins/vscode/README.md create mode 100644 plugins/vscode/vscode.plugin.zsh diff --git a/plugins/vscode/README.md b/plugins/vscode/README.md new file mode 100644 index 000000000..64216463f --- /dev/null +++ b/plugins/vscode/README.md @@ -0,0 +1,17 @@ +## Visual Studio Code + +Plugin for Visual Studio Code, a text editor for Mac OS X, Windows, and Linux + +### Requirements + + * [Visual Studio Code](https://code.visualstudio.com) + +### Usage + + * If the `code` command is called without an argument, launch VS Code + + * If `code` is passed a directory, cd to it and open it in VS Code + + * If `code` is passed a file, open it in VS Code + +*NOTE: `vscode` can be used as an alias in place of `code`* \ No newline at end of file diff --git a/plugins/vscode/vscode.plugin.zsh b/plugins/vscode/vscode.plugin.zsh new file mode 100644 index 000000000..2dfd37948 --- /dev/null +++ b/plugins/vscode/vscode.plugin.zsh @@ -0,0 +1,17 @@ +alias vscode='code' + +# +# If the code command is called without an argument, launch VS Code +# If code is passed a directory, cd to it and open it in VS Code +# If code is passed a file, open it in VS code +# +function code { + if [[ $# = 0 ]] + then + open -a "Visual Studio Code" + else + local argPath="$1" + [[ $1 = /* ]] && argPath="$1" || argPath="$PWD/${1#./}" + open -a "Visual Studio Code" "$argPath" + fi +}