Skip to content

Instantly share code, notes, and snippets.

@ggrumbley
Last active September 26, 2017 17:00
Show Gist options
  • Save ggrumbley/bb3bf281dae956235bea90f9d94fb326 to your computer and use it in GitHub Desktop.
Save ggrumbley/bb3bf281dae956235bea90f9d94fb326 to your computer and use it in GitHub Desktop.
Some useful bash aliases
alias jsS="live-server --port=9000"
alias bs='browser-sync start --server --directory --files "**"'
function jsonS() {
if [ $1 ]; then
json-server --watch $1
else
json-server --watch db.json
fi
}
function c() {
if [ $1 ]; then
code $1
else
code .
fi
}
# mkdir and cd in dir
function mkcd() { mkdir -p "$@" && cd "$_"; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment