-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc_docker
40 lines (27 loc) · 1.08 KB
/
.bashrc_docker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# ========================= COLORS ========================= #
# https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux
RED='\033[31m'
YELLOW='\033[1;33m'
GREEN='\033[0;32m'
NC='\033[0m' # No color
# ========================= HELPERS ========================= #
alias cls="tput reset" # Clears the terminal
alias el="echo -e ''" # Empty line
out() {
printf "${!2}${1}${NC}"
}
# ========================= COMPOSER ========================= #
alias c="composer"
alias cr="composer require"
# ========================= PHPUNIT ========================= #
alias pu="cls && phpunit"
alias pf="cls && phpunit --filter"
# ========================= ARTISAN ========================= #
alias pa="php artisan"
alias tinker="php artisan tinker"
alias oc="php artisan optimize:clear"
alias tc="php artisan telescope:clear"
alias mfs="php artisan migrate:fresh --seed" # сделать функцию prompt (Are you sure?)
# ========================= CODE STYLE ========================= #
alias check="composer app:check-build"
alias fix="composer app:cs-fix"