Skip to content

Instantly share code, notes, and snippets.

@destinio
Created June 30, 2022 14:24
Show Gist options
  • Save destinio/7d05484fe6698b90e0b638154dd06711 to your computer and use it in GitHub Desktop.
Save destinio/7d05484fe6698b90e0b638154dd06711 to your computer and use it in GitHub Desktop.
alias ll='ls -al'
alias ld='ls -alt'
alias c='code .'
alias ll='ls -al'
alias ld='ls -alt'
alias c='code .'
alias cd..='cd ..'
alias ..='cd ..'
alias ...='cd ../..'
alias cd!='cd !$'
# YARN
alias ys='yarn start'
alias yd='yarn dev'
alias yt='yarn test'
alias yb='yarn build'
alias yw='yarn watch'
alias y='yarn --registry https://registry.yarnpkg.com'
alias yl='yarn --registry https://registry.yarnpkg.com add'
alias yld='yarn --registry https://registry.yarnpkg.com add -D'
alias ylg='yarn global --registry https://registry.yarnpkg.com add'
alias yal='yarn upgrade --latest'
# GIT
alias gaa='git add --all'
alias gi='npx add-gitignore'
alias gb='git branch'
alias gco='git checkout'
alias gco-='git checkout -'
alias gcob='git checkout -b'
alias gcom='git checkout main'
alias gcm='git commit -a -m'
alias gpoh='git push origin head'
alias gpull='git pull'
alias gst='git status'
alias gs='git stash'
alias gspop='git stash pop'
alias gd='git diff'
alias gds='git diff --stat master'
alias gl='git log'
alias glo='git log --oneline'
alias glos='git log --oneline --stat'
alias glg='git log --graph --oneline --decorate'
# NPM
alias nss='npm start'
alias nd='npm run dev'
alias nb='npm run build'
alias npmv='npm version'
alias npmp='npm publish'
alias npmpp='npm publish --access public'
alias npmdry='npm publish --dry-run'
# NPM CREATE
alias cv ='npm create vite@latest'
alias cvr ='npm create vite@latest -- --template react-ts'
# NPX
alias gi='npx add-gitignore'
alias tsn='npx ts-node'
alias cra='npx create-react-app --template typescript'
# CLEAN UP NODE MODS
alias fnm='find . -name "node_modules" -type d -prune | xargs du -chs'
# DNM = DELETE NODE MODULES - in current DIR
alias dnm='find . -name "node_modules" -type d -prune -exec rm -rf '{}' +'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment