Skip to content

Instantly share code, notes, and snippets.

@sullenfish
Created September 3, 2013 11:55
Show Gist options
  • Save sullenfish/6422876 to your computer and use it in GitHub Desktop.
Save sullenfish/6422876 to your computer and use it in GitHub Desktop.
Output only the results of npm -g outdated via the_silver_searcher in zsh.
# asynch
npm -g outdated 2>>(ag --nocolor '^((?!npm http).)*$')
# synch
{ { npm -g outdated 1>&3 } 2>&1 | ag --nocolor '^((?!npm http).)*$' } 3>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment