-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzprofile
41 lines (37 loc) · 1.75 KB
/
zprofile
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
#aliases
alias ll="ls -l"
alias yless='rm -rf node_modules bower_components dist tmp && yarn install'
alias npmless='rm -rf node_modules dist tmp && npm install'
alias pnpmless='rm -rf **/node_modules && pnpm install'
alias cs="~/i/api/vendor/bin/phpcs --standard=~/i/api/phpcs.xml.dist ~/i/api/src ~/i/api/tests"
alias cct="rm -rf ~/i/api/var/tmp/*; rm -rf ~/i/api/var/cache/test; ~/i/api/bin/console cache:clear --no-warmup --env=test; ~/i/api/bin/console cache:warmup --env=test"
alias cc="~/i/api/bin/console cache:clear --no-warmup; ~/i/api/bin/console cache:warmup"
alias startdemodb='docker pull ilios/mysql-demo; docker run -d --name ilios-demo-db -p 3306:3306 ilios/mysql-demo'
alias startelasticsearch='docker run -d --name ilios-elasticsearch -p 9200:9200 elasticsearch:6.5.4'
alias demodb='docker exec -it ilios-demo-db bash'
alias dc='docker compose --env-file ~/.docker-empty.env'
alias d-c='docker-compose --env-file ~/.docker-empty.env'
alias composerless='rm -rf vendor; RM_STAR_SILENT=true rm -rf bin/.phpunit; RM_STAR_SILENT=true rm -rf var/cache/*;php -d memory_limit=-1 ~/bin/composer install; bin/console cache:warmup'
alias cat="bat"
alias cdic="cd ~/i/common"
alias cdif="cd ~/i/frontend"
alias cdii="cd ~/i/api"
switchphp() {
brew unlink php
if [ "$1" = "8.5" ]; then
echo "PHP 8.5 not yet installed, look for Shivammathur version"
# echo "Switching to Shivammathur PHP 8.5"
# brew unlink [email protected] && brew link --force [email protected]
else
echo "Switching to PHP $1"
brew link --force --overwrite php@$1
fi
}
#homebrew setup
export HOMEBREW_PREFIX="/opt/homebrew";
export HOMEBREW_CELLAR="/opt/homebrew/Cellar";
export HOMEBREW_REPOSITORY="/opt/homebrew";
#ngrok autocompletions
if command -v ngrok &>/dev/null; then
eval "$(ngrok completion)"
fi