All Projects → g-plane → Zsh Yarn Autocompletions

g-plane / Zsh Yarn Autocompletions

Licence: mit
Zsh plugin for Yarn autocompletions.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Zsh Yarn Autocompletions

Fish Nvm
nvm wrapper for fish-shell
Stars: ✭ 336 (-30%)
Mutual labels:  yarn
Npminstall
Make `npm install` fast and easy.
Stars: ✭ 374 (-22.08%)
Mutual labels:  yarn
Submarine
Submarine is Cloud Native Machine Learning Platform.
Stars: ✭ 416 (-13.33%)
Mutual labels:  yarn
Fzf Marks
Plugin to manage bookmarks in bash and zsh
Stars: ✭ 343 (-28.54%)
Mutual labels:  zsh-plugin
Kyuubi
Kyuubi is a unified multi-tenant JDBC interface for large-scale data processing and analytics, built on top of Apache Spark
Stars: ✭ 363 (-24.37%)
Mutual labels:  yarn
Awesome Npm
Awesome npm resources and tips
Stars: ✭ 3,894 (+711.25%)
Mutual labels:  yarn
History Search Multi Word
Multi-word, syntax highlighted history searching for Zsh
Stars: ✭ 314 (-34.58%)
Mutual labels:  zsh-plugin
Npm Gui
Graphic tool for managing javascript project dependencies - in a friendly way.
Stars: ✭ 454 (-5.42%)
Mutual labels:  yarn
Website
Yarn package manager website
Stars: ✭ 374 (-22.08%)
Mutual labels:  yarn
Enterprise gateway
A lightweight, multi-tenant, scalable and secure gateway that enables Jupyter Notebooks to share resources across distributed clusters such as Apache Spark, Kubernetes and others.
Stars: ✭ 412 (-14.17%)
Mutual labels:  yarn
Zsh Better Npm Completion
Better completion for npm
Stars: ✭ 346 (-27.92%)
Mutual labels:  zsh-plugin
Fz
Cli shell plugin, the missing fuzzy tab completion feature of z jump around command.
Stars: ✭ 359 (-25.21%)
Mutual labels:  zsh-plugin
Benchmarks Of Javascript Package Managers
Benchmarks of JavaScript Package Managers
Stars: ✭ 388 (-19.17%)
Mutual labels:  yarn
Gulp Scss Starter
Frontend development with pleasure. SCSS version
Stars: ✭ 339 (-29.37%)
Mutual labels:  yarn
Magento2 Frontools
Set of front-end tools for Magento 2 based on Gulp.js
Stars: ✭ 416 (-13.33%)
Mutual labels:  yarn
Dotbare
Manage dotfiles and any git directories interactively with fzf
Stars: ✭ 327 (-31.87%)
Mutual labels:  zsh-plugin
Js Stack From Scratch
🛠️⚡ Step-by-step tutorial to build a modern JavaScript stack.
Stars: ✭ 18,814 (+3819.58%)
Mutual labels:  yarn
Hyperstack
Hyperstack ALPHA https://hyperstack.org
Stars: ✭ 463 (-3.54%)
Mutual labels:  yarn
Salus
Security scanner coordinator
Stars: ✭ 441 (-8.12%)
Mutual labels:  yarn
Lockfile Lint
Lint an npm or yarn lockfile to analyze and detect security issues
Stars: ✭ 411 (-14.37%)
Mutual labels:  yarn

zsh-yarn-autocompletions

license Github Releases

You may also like:

  • icd - Powerful cd command with fuzzy-search tool.

Supported yarn commands

  • yarn run
  • yarn remove
  • yarn add
  • yarn why

You can customize the autocompletion of yarn add command. It's configurable.

Installation

Manually

Download

Please go to the GitHub releases page and download the latest binary files.

Note that you should choose correct file according to your OS.

Add as a Zsh plugin

Unzip the compressed file you downloaded.

For 1.x (or above) users, please run:

$ ./install.sh $ZSH_CUSTOM/plugins

For 0.2 users, please run:

$ ./install.sh $ZSH_CUSTOM

Next please edit your .zshrc file. Add yarn-autocompletions to plugins section.

Like this:

plugins=(
  # ... your other plugins
+ yarn-autocompletions
)

Restart your terminal.

With a plugin manager

zinit

Update your .zshrc file with the following line:

zinit ice atload"zpcdreplay" atclone'./zplug.zsh'
zinit light g-plane/zsh-yarn-autocompletions

zplug

Update your .zshrc file with the following line:

zplug "g-plane/zsh-yarn-autocompletions", hook-build:"./zplug.zsh", defer:2

Customize the autocompletion of yarn add command

Since v1.0.0

This plugin support adding your favorite packages name for autocompletion of yarn add and yarn add --dev command.

Adding a configuration file

First, put a new file called .yarn-autocompletions.yml in your home directory.

For example:

$ touch ~/.yarn-autocompletions.yml

This file is in YAML format.

Adding your favorite packages

We assume you want to add vue and react. So you can edit that file like this:

dependencies:
  - vue
  - react

And dev_dependencies:

dev_dependencies:
  - vue-loader
  - parcel-bundler

Excluding some packages

In fact, this plugin has some builtin packages autocompletion which can provide out-of-the-box experience, such as vue or react.

However you don't like those builtin packages.

So you can add it to exclude section:

exclude:
  - react

Now you won't see react in autocompletion.

All sections are optional

Now the whole configuration file looks like:

dependencies:
  - vue
  - react
dev_dependencies:
  - vue-loader
  - parcel-bundler
exclude:
  - react

Keep in mind that any sections are optional.

Build from source

Make sure that you've installed rustup first and use rustup to install Rust.

Next, follow the steps below:

git clone https://github.com/g-plane/zsh-yarn-autocompletions.git
cd zsh-yarn-autocompletions
cargo build --release
mkdir -p $ZSH_CUSTOM/plugins/yarn-autocompletions
cp ./yarn-autocompletions.plugin.zsh $ZSH_CUSTOM/plugins/yarn-autocompletions/
cp ./target/release/yarn-autocompletions $ZSH_CUSTOM/plugins/yarn-autocompletions/

Then, edit your .zshrc like this:

plugins=(
  # ... your other plugins
+ yarn-autocompletions
)

Restart your terminal.

Contribution

Any contributions are welcome.

License

MIT License

Copyright (c) 2018-present Pig Fang

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].