Created
November 1, 2019 18:34
-
-
Save MostafaNorzade/8444fc604db6a07fc804aaa3cc3e4798 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .bashrc | |
| # Source global definitions | |
| if [ -f /etc/bashrc ]; then | |
| . /etc/bashrc | |
| fi | |
| # User specific environment | |
| PATH="$HOME/.local/bin:$HOME/bin:$PATH" | |
| export PATH | |
| # Uncomment the following line if you don't like systemctl's auto-paging feature: | |
| # export SYSTEMD_PAGER= | |
| # User specific aliases and functions | |
| unset PROMPT_COMMAND | |
| #new alias | |
| #---- linux ----- | |
| alias s="sudo " | |
| alias h='cd ~' | |
| alias c='clear' | |
| #----- Laravel | |
| alias a="php artisan" | |
| alias as="php artisan serve" | |
| alias tinker="php artisan tinker" | |
| alias am="php artisan migrate" | |
| alias fresh="php artisan migrate:refresh" | |
| alias amc='php artisan make:controller' | |
| alias amm='php artisan make:model' | |
| #----- Laravel couple reset ----------- | |
| alias larafresh='composer dump-autoload && php artisan cache:clear && php artisan clear-compiled && php artisan optimize && php artisan migrate:refresh --seed' | |
| alias laraquick='composer dump-autoload && php artisan cache:clear && php artisan clear-compiled' #Same as above except without the db refresh | |
| alias larafull='rm -rf vendor && rm -rf node_modules && composer install && npm install && bower install && gulp && php artisan clear-compiled && php artisan optimize && php artisan migrate:refresh --seed' | |
| #----- Git ----- | |
| alias gs="git status" | |
| alias gb="git branch" | |
| alias gc="git commit -m" | |
| alias ga="git add ." | |
| alias gd="git branch -D" | |
| alias gps="torsocks git push origin" | |
| alias gpl="torsocks git pull origin" | |
| #----- Open Github repasitory ------ | |
| function lf() { | |
| open "https://gitlab.com/laminorir/academy"; | |
| } | |
| function hub() { | |
| open "https://gitlab.com/username/repositry/issues/$1"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment