Created
March 7, 2014 12:01
-
-
Save simonsmith/9410249 to your computer and use it in GitHub Desktop.
Some bash profile functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function server() { | |
| local port="${1:-8000}" | |
| open "http://localhost:${port}/" | |
| python -m SimpleHTTPServer "$port" | |
| } | |
| # grunt | |
| function gi() { | |
| npm install --save-dev grunt-"$@" | |
| } | |
| function gui() { | |
| npm uninstall --save-dev grunt-"$@" | |
| } | |
| function gci() { | |
| npm install --save-dev grunt-contrib-"$@" | |
| } | |
| function gcui() { | |
| npm uninstall --save-dev grunt-contrib-"$@" | |
| } | |
| # bower | |
| function bi() { | |
| bower install "$@" --save | |
| } | |
| function bui() { | |
| bower uninstall "$@" --save | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment