Coder Social home page Coder Social logo

zsh-plugin-appup's Introduction

AppUp

The command that can save you typing 15 characters or more, each time!

CircleCI

This plugins adds start, restart, stop, up and down commands when it detects a docker-compose or Vagrant file in the current directory (e.g. your application). Just run up and get coding! This saves you typing docker-compose or vagrant every time or aliasing them. Also gives you one set of commands that work for both environments.

Docker

Aside from simply running up, you can also extend your configuration by running up <name>, which will run docker-compose with both docker-compose.yml and extend it with docker-compose.<name>.yml. For more on extending please see the official docker documentation. Additional arguments will be directly supplied to the docker-compose.

Vagrant

Vagrant doesn't have a down, restart, start or stop commands natively but don't worry, that's been taken care of and running those commands will actually run vagrant's equivalent commands. Additional arguments will be directly supplied to vagrant.

Command mapping

Command Vagrant command Docker command
up up up
down destroy down
start up start
restart reload restart
stop halt stop

Installation

oh-my-zsh

  1. Clone this repository in $ZSH_CUSTOM/plugins/appup:

    git clone https://github.com/Cloudstek/zsh-plugin-appup.git "$ZSH_CUSTOM/plugins/appup"
  2. Edit ~/.zshrc and add appup to the list of plugins

Plain ZSH

  1. Clone this repository somewhere

  2. Edit your ~/.zshrc and add this line near the bottom of the file:

    source path/to/the/repository/appup.plugin.zsh

Updating

  1. Go to the directory where you cloned the plugin repository
  2. Run git pull origin master

Configuration options

AppUp has a few configuration options to customise its behaviour. Please make sure you define these in ~/.zshrc before you load any plugins.

Name Values Default Description
APPUP_CHECK_STARTED true/false true Enable/disable checking if docker is running completely.
APPUP_DOCKER_MACHINE true/false true If both docker (e.g. Docker Desktop) and docker-machine are installed, check if docker-machine (when true) or docker (when false) is running.

zsh-plugin-appup's People

Contributors

mdeboer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.