Skip to content

Instantly share code, notes, and snippets.

@adamkiss
Created July 23, 2020 11:32
Show Gist options
  • Save adamkiss/55cd59c8e900749c7830cfef2dd7bd08 to your computer and use it in GitHub Desktop.
Save adamkiss/55cd59c8e900749c7830cfef2dd7bd08 to your computer and use it in GitHub Desktop.
NPM RUN Shortcut
#!/usr/bin/env fish
function nr -a script --description 'npm run shortcut with default script set to "start"'
if not string length -q $script
set script start
end
npm run $script
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment