From 8dbd049da4d8068a283057cc33f35b187c4c7c2a Mon Sep 17 00:00:00 2001 From: Joe Zulli Date: Sun, 12 May 2013 21:58:05 -0700 Subject: [PATCH] Add autocomplete and a couple of aliases for the Play Framework v2.x --- plugins/play/_play | 32 ++++++++++++++++++++++++++++++++ plugins/play/play.plugin.zsh | 13 +++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 plugins/play/_play create mode 100644 plugins/play/play.plugin.zsh diff --git a/plugins/play/_play b/plugins/play/_play new file mode 100644 index 00000000..bb602d15 --- /dev/null +++ b/plugins/play/_play @@ -0,0 +1,32 @@ +#compdef play +#autoload + +local -a _play_commands +_play_commands=( + 'classpath:Display the project classpath' + 'clean:Clean all generated files' + 'clean-all:Force clean all generated directories including the SBT cache' + 'compile:Compile the current application' + '~compile:Compile the current application continuously with automatic reloading' + 'console:Launch the interactive Scala console (use :quit to exit)' + 'dependencies:Display the dependencies summary' + 'dist:Construct standalone application package' + 'package:Package your application as a JAR' + 'publish:Publish your application in a remote repository' + 'publish-local:Publish your application in the local repository' + 'reload:Reload the current application build file' + 'run:Run the current application in DEV mode' + '~run:Run the current application in DEV mode with automatic reloading' + 'test:Run Junit tests and/or Specs from the command line' + '~test:Run Junit tests and/or Specs continuously with automatic reloading' + 'eclipse:Generate eclipse project file' + 'idea:Generate Intellij IDEA project file' + 'start:Start the current application in another JVM in PROD mode' + 'update:Update application dependencies' +) + + +local expl + +_describe -t commands "play subcommand" _play_commands +return diff --git a/plugins/play/play.plugin.zsh b/plugins/play/play.plugin.zsh new file mode 100644 index 00000000..a0f75684 --- /dev/null +++ b/plugins/play/play.plugin.zsh @@ -0,0 +1,13 @@ +# ------------------------------------------------------------------------------ +# FILE: play.plugin.zsh +# DESCRIPTION: oh-my-zsh plugin file for PlayFramework 2.x. +# AUTHOR: Joe Zulli (GitHub Alias: GitsMcGee) +# VERSION: 1.0.0 +# ------------------------------------------------------------------------------ + +# Hopefully useful aliases. All Aliases start with 'pl...' +alias pltc="play '~compile'" # Compile in "triggered execution" mode +alias pltr="play '~run'" # Run in "triggered execution" mode +alias pltt="play '~test'" # Test in "triggered execution" mode + +