-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
95 lines (89 loc) · 3.12 KB
/
.bash_aliases
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
## Pre-loaded Aliases ##
# Show/hide hidden files in Finder.
alias finder-show-hidden="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
alias finder-hide-hidden="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
alias ai="sudo apt install"
alias l="ls -al"
alias mkd=". ~/bin/mkdir"
alias s="subl 2>/dev/null || code"
alias sc="s ."
alias scc="s composer.json"
alias cc="code ."
alias ccc="code composer.json"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
#alias gh="cd ~" # Go home
alias pt="./vendor/bin/pest"
alias ptc="XDEBUG_MODE=coverage ./vendor/bin/pest --coverage --min=100 --coverage-html=.coverage --coverage-clover=coverage.xml tests/"
alias py="python"
alias pi="pip install"
alias gps="cd ~/projects-sync"
alias gp="cd ~/projects"
alias gpn="cd /media/alexbarnsley/nvme/projects"
alias gpa="cd ~/projects/ark"
alias gpardent="cd ~/projects/ardent"
alias gpp="cd ~/projects/payvo"
alias c="php -d memory_limit=-1 /usr/local/bin/composer"
alias ca="./vendor/bin/phpstan clear && c analyse"
alias ci="c install"
alias cu="c update"
alias cr="c require"
alias ct="c test"
alias ctc="c test:coverage"
alias cf="composer-fresh"
alias c2="php -d memory_limit=-1 /usr/local/bin/composer-v2.2"
alias ci2="c2 install"
alias cu2="c2 update"
alias cr2="c2 require"
alias ct2="c2 test"
alias ctc2="c2 test:coverage"
alias v="valet"
alias vo="v open"
alias pa="php artisan"
alias pas="pa serve"
alias pat="pa test"
alias g="git"
alias cd='. cd-git-wrapper'
alias y='jspm'
# alias y='yarn'
# alias y='if [[ -f "yarn.lock" ]]; then yarn; else; pnpm; fi'
alias yi='y install'
alias yid='yi && y dev'
alias yb='if [[ -z $((jq -er ".scripts.build" package.json || echo "") | tail -n 1) ]]; then y prod; else; y build; fi'
alias yd='y dev'
alias yis='yi && y serve'
alias yw='y watch || y dev'
alias yp='if [[ -z $((jq -er ".scripts.prod" package.json || echo "") | tail -n 1) ]]; then y build; else; y prod; fi'
alias yt='y test'
alias f='~/.config/composer/vendor/bin/forge'
alias ys='if [[ -z $((jq -er ".scripts.serve" package.json || echo "") | tail -n 1) ]]; then y storybook; else; y serve; fi'
alias phpv7='valet use [email protected] --force'
alias phpv8='valet use [email protected] --force'
alias ms='meilisearch --no-analytics=1 --master-key=masterKey'
alias begin='valet use [email protected] --force && brew services restart postgres && ms'
alias clear='printf "\n%.0s" {1..$(tput lines)}'
alias clear-laravel-logs='$(gp && find . -name "laravel.log" -exec rm {} \;)'
alias lc='laravelclear'
alias arkscan='cd /home/alexbarnsley/projects/work/ardent/arkscan'
alias arkio='cd /home/alexbarnsley/projects/work/ardent/ark.io'
# function y() {
# COMMAND="yarn"
# # if [[ ! -f "yarn.lock" ]]; then
# # COMMAND="pnpm";
# # fi
# echo "$COMMAND ${@:2}";
# eval "$COMMAND ${@:2}";
# }
laravelclear() {
php artisan optimize:clear && php artisan view:clear && php artisan cache:clear && php artisan responsecache:clear && php artisan config:cache && pa route:clear && c dumpautoload
}
expcache() {
laravelclear
php artisan explorer:cache-development-data
}
#gps() {
# cd "~/projects"
# echo $1
#}