Skip to content

Instantly share code, notes, and snippets.

@themarcba
Last active June 18, 2021 16:02
Show Gist options
  • Save themarcba/efdf386403047f41d19058510907bca1 to your computer and use it in GitHub Desktop.
Save themarcba/efdf386403047f41d19058510907bca1 to your computer and use it in GitHub Desktop.
#################################################################
# Marc's LAZY code-related aliases (some might require oh-my-zsh)
#################################################################
# For lazy commits
alias c="git commit -m"
# Lazy access to yarn
alias y="yarn"
# Lazy start development server
alias yd="yarn dev"
# Lazy dependency adding
alias ya="yarn add"
# Lazy dev dependency adding
alias yad="yarn add --dev"
# Lazy global dependency adding
alias yag="yarn global add"
# Lazy dependency removal
alias ya="yarn remove"
# Lazy push to origin form current branch
alias p="ggpush"
# Lazy pull from origin to current branch
alias pu="ggpull"
# Lazy undo of staged changes
alias nevermind="git reset --hard"
# Commit all unstaged changes with the last commit message and push to the current branch
alias cpu='git add . && git commit -am "`git log -1 --pretty=%B | cat`" && ggpush'
# Lazy add, commit & push. For trying things directly on a server
alias qp="ga . && c 'quick push' && p"
# Lazy change to the backend folder
alias be="cd backend"
# Lazy change to the frontend folder
alias fe="cd frontend"
# Lazy run the backend dev server
alias bey="cd backend && yarn dev"
# Lazy run the frontend dev server
alias fey="cd frontend && yarn dev"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment