Last active
September 26, 2017 17:00
-
-
Save ggrumbley/bb3bf281dae956235bea90f9d94fb326 to your computer and use it in GitHub Desktop.
Some useful bash aliases
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
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