Skip to content

Instantly share code, notes, and snippets.

View aluzed's full-sized avatar

Alex P. aluzed

  • Upg
  • PARIS
View GitHub Profile
@arnaudcourtecuisse
arnaudcourtecuisse / yarn_completion
Last active June 1, 2018 09:41
Basic yarn bash completion for commands and scripts (place file in /etc/bash_completion.d/)
_yarn() {
local cur prev commands scripts opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
commands="access add autoclean bin cache check config create exec generate-lock-entry global\
help import info init install licenses link list login logout node outdated owner pack publish\
remove run tag team unlink upgrade upgrade-interactive version versions why workspace workspaces"