Skip to content

Instantly share code, notes, and snippets.

@simonsmith
Created March 7, 2014 12:01
Show Gist options
  • Select an option

  • Save simonsmith/9410249 to your computer and use it in GitHub Desktop.

Select an option

Save simonsmith/9410249 to your computer and use it in GitHub Desktop.
Some bash profile functions
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