Skip to content

Instantly share code, notes, and snippets.

@achrafmontage
Forked from BashirShallah/my aliases
Last active April 23, 2020 19:50
Show Gist options
  • Save achrafmontage/be42a70b67dac92055ef6bf4702fd3e7 to your computer and use it in GitHub Desktop.
Save achrafmontage/be42a70b67dac92055ef6bf4702fd3e7 to your computer and use it in GitHub Desktop.
step #1
go to this path:
C:\Users\NAME-PC
step #2
then create this file .bash_profile if not available
step #3
past all the aliases bellow or make yours as well:
###############################################################################################################
# git
alias g="git"
alias gs="git status"
alias ga="git add ."
alias gc="git commit -m"
alias gn="git init && git add . && git commit -m \"init\""
# laravel
alias pa="php artisan"
alias l="php artisan serve"
alias lmf="php artisan migrate:fresh --seed"
alias pt="vendor/bin/phpunit --testdox --stop-on-failure"
alias ptf="vendor/bin/phpunit --testdox --stop-on-failure --filter"
alias tinker="pa tinker"
# react native
alias rr="react-native run-android"
alias rn="react-native"
alias rns="react-native start --reset-cache"
alias rrr="rr --variant=release"
alias rnb="cd android && ./gradlew bundleRelease && cd .."
alias rnc="cd android && ./gradlew clean && cd .."
# flutter
alias f="flutter"
alias fd="flutter doctor"
alias fr="flutter run"
# yarn
alias y="yarn"
alias yt="yarn test"
alias ya="yarn add"
# other
alias c=clear
alias sd="start ."
alias ll='ls -lah'
alias ..='cd ..'
alias bash='/git-bash.exe &'
alias b='bash'
alias upalias="source ~/.bashrc"
@helciodasilva
Copy link

Top

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