Skip to content

Instantly share code, notes, and snippets.

@LeCoupa
Last active July 18, 2024 15:58
Show Gist options
  • Save LeCoupa/7c4f420e9c2773c6f63c19ad28905410 to your computer and use it in GitHub Desktop.
Save LeCoupa/7c4f420e9c2773c6f63c19ad28905410 to your computer and use it in GitHub Desktop.
Shell Aliases
##############################################################################
# SHELL ALIASES
# ADD TO .bashrc OR .zshrc
##############################################################################
# Capacitor
alias csync="npx cap sync"
alias cios="npx cap open ios"
alias cand="npx cap open android"
# NPM
alias nb="npm run build"
alias nbz="npm run build:zip"
alias nd="npm run dev"
alias ng="npm run generate"
alias ni="npm install"
alias np="npm publish"
alias nr="npm run"
alias ns="npm run start"
alias nt="npm run test"
alias nts="npm run test:single"
alias nib="npm install; npm run build"
alias nid="npm install; npm run dev"
alias nbp="npm run build; npm publish"
# Adonis
alias dbs="node ace db:seed"
alias mru="node ace migration:run"
alias mro="node ace migration:rollback"
# The Companies API
alias tc="cd ~/Documents/TheCompaniesAPI"
alias tcapp="cd ~/Documents/TheCompaniesAPI/thecompaniesapi-app"
alias tcapi="cd ~/Documents/TheCompaniesAPI/thecompaniesapi-api"
alias tcscr="cd ~/Documents/TheCompaniesAPI/thecompaniesapi-api-scraping"
alias tcver="cd ~/Documents/TheCompaniesAPI/thecompaniesapi-verify"
alias tcdat="cd ~/Documents/TheCompaniesAPI/thecompaniesapi-data"
alias tcela="cd ~/Documents/TheCompaniesAPI/thecompaniesapi-elastic"
alias tchel="cd ~/Documents/TheCompaniesAPI/thecompaniesapi-helpers"
alias tcinf="cd ~/Documents/TheCompaniesAPI/thecompaniesapi-infrastructure"
alias tcmar="cd ~/Documents/TheCompaniesAPI/thecompaniesapi-marketing"
alias tcpow="cd ~/Documents/TheCompaniesAPI/thecompaniesapi-power/power"
# Resilience Club
alias rc="cd ~/Documents/ResilienceClub"
alias rcapp="cd ~/Documents/ResilienceClub/resilienceclub-app"
alias rcapi="cd ~/Documents/ResilienceClub/resilienceclub-api"
alias rcinf="cd ~/Documents/ResilienceClub/resilienceclub-infrastructure"
# Servers
alias sshapi="ssh -t [email protected] 'cd thecompaniesapi-api && zsh'"
alias sshapipub="ssh -t [email protected] 'cd thecompaniesapi-api && zsh'"
alias sshapiscr="ssh -t [email protected] 'cd thecompaniesapi-api-scraping && zsh'"
alias sshapiver="ssh -t [email protected] 'cd thecompaniesapi-api-verify && zsh'"
alias sshapp="ssh -t [email protected] 'cd thecompaniesapi-app && zsh'"
alias sshpow="ssh -t [email protected] 'cd thecompaniesapi-power && zsh'"
alias sshpowdom="ssh [email protected]"
alias sshrc="ssh [email protected]"
# Mac Minis
alias macmini="ssh [email protected]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment