GithubHelp home page GithubHelp logo

cli-goodies's Introduction

Introduction

These are a bunch of antigen/oh-my-zsh/prezto compatible shell scripts which make me productive on the commandline.

Installation

I use Prezto to manage zsh; ergo this repository should work seamlessly with it, with close to no impact to shell load time.

Installing under Prezto

cd .zprezto
git submodule add https://github.com/srijanshetty/cli-goodies.git modules/cli-goodies

Add cli-goodies to your .zpreztorc file:

# Set the Prezto modules to load (browse modules).
# The order matters.
zstyle ':prezto:load' pmodule \
  'environment' \
  'terminal' \
  'editor' \
  'history' \
  'directory' \
  'spectrum' \
  'utility' \
  'completion' \
  'prompt' \
  'cli-goodies'

Installing under oh-my-zsh

I haven't tried using cli-goodies with oh-my-zsh and I think the following should work in theory.

wget https://raw.github.com/srijanshetty/cli-goodies/master/init.zsh -O $HOME/.oh-my-zsh/custom/cli-goodies.zsh

Installing using Antigen

If you use Antigen, adding the following line to .zshrc should load cli-goodies.

antigen-bundle srijanshetty/zsh-dwim

Using cli-goodies anywhere else

Anyone running zsh should only need to add the following line to their .zshrc:

source init.zsh

Dependencies

  • You'll need to install peru to get the completions working. Peru is a simple file downloader with a declarative syntax. While curl could be used to accomplish the same, peru is simpler to read.
pip install peru
peru sync

Features

Completions

                              __     __  _
  _________  ____ ___  ____  / /__  / /_(_)___  ____  _____
 / ___/ __ \/ __ `__ \/ __ \/ / _ \/ __/ / __ \/ __ \/ ___/
/ /__/ /_/ / / / / / / /_/ / /  __/ /_/ / /_/ / / / (__  )
\___/\____/_/ /_/ /_/ .___/_/\___/\__/_/\____/_/ /_/____/
                   /_/

Completions for a bunch of commands collected in one place

Scripts/Functions

        ___                             ___
  _____/ (_)     ____ _____  ____  ____/ (_)__  _____
 / ___/ / /_____/ __ `/ __ \/ __ \/ __  / / _ \/ ___/
/ /__/ / /_____/ /_/ / /_/ / /_/ / /_/ / /  __(__  )
\___/_/_/      \__, /\____/\____/\__,_/_/\___/____/
              /____/

Notes

  • There are two loaders init.plugin.zsh and init.zsh. This is to make sure that the module works with all the plugin loaders out there. The former in addition to loading the latter also loads up all the autoloadable functions.

cli-goodies's People

Contributors

srijanshetty avatar corbolais avatar

Watchers

James Cloos avatar  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.