Skip to content

Instantly share code, notes, and snippets.

@farsh4d
Last active October 13, 2023 13:41
Show Gist options
  • Save farsh4d/4ac29da62ab6e7325a1cfcc505d40054 to your computer and use it in GitHub Desktop.
Save farsh4d/4ac29da62ab6e7325a1cfcc505d40054 to your computer and use it in GitHub Desktop.
Bashrc Alias Commands
#Git
alias gc="git clone"
alias ga="git add"
alias ga.="ga ."
alias gcm="git commit -m"
alias gp="git push"
alias gpl="git pull"
alias gm="git merge"
alias gs="git status"
alias gpo="gp origin"
alias gb="git branch"
alias gch="git checkout"
alias gd="git diff"
#PHP - Laravel
alias ps='f(){ php -S 127.0.0.1:"$@";};f'
alias pa="php artisan"
alias pamg="pa migrate"
alias pas="pa serve"
alias pat="pa tinker"
alias pam='f(){ php artisan make:"$@";};f'
alias paq='f(){ php artisan queue:"$@";};f'
alias pasch='f(){ php artisan schedule:"$@";};f'
alias pu='./vendor/bin/phpunit'
alias puf="clear && pu --filter"
#Bash
alias q="exit"
alias c="clear"
#Python - Django
alias py="python"
alias p="pip"
alias pi="p install"
alias dj="django-admin"
alias djs="dj startproject"
alias mpy="py manage.py"
alias mpymk="mpy makemigrations"
alias mpymg="mpy migrate"
alias mpys="mpy runserver"
alias mapp="mpy startapp"
#Npm [by @peymanath]
alias nr = "npm run"
alias ns = "npm start"
alias nb = "nr build"
@peymanath
Copy link

#Npm
alias nr = "npm run"
alias ns = "npm start"
alias nb = "nr build"

@farsh4d
Copy link
Author

farsh4d commented Sep 3, 2023

👍👍👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment