You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.6 KiB

9 months ago
  1. #!/bin/sh
  2. # gitup='git remote | xargs -L1 git push --all' \
  3. alias \
  4. q='exit' \
  5. ls="ls --color=auto" \
  6. ll="ls -G -alh" \
  7. dd='sudo dd status=progress' \
  8. h="history 1 | grep" \
  9. vim='nvim' \
  10. grep='grep --color=auto' \
  11. p='sudo pacman' \
  12. extip='curl -s www.icanhazip.com' \
  13. gco='git checkout' \
  14. gbls='git --no-pager branch -a' \
  15. vv='nvim ~/.config/nvim/init.lua' \
  16. vz='nvim ~/.zshrc && source ~/.zshrc' \
  17. va='nvim ~/.config/aliasrc && source ~/.zshrc' \
  18. sz='source ~/.zshrc' \
  19. delorig='find . -name "*.orig" -exec rm {} \;' \
  20. delbak='find . -name "*.bak" -exec rm {} \;' \
  21. cpp="rsync --progress --recursive" \
  22. sv="sudo nvim" \
  23. c="xclip -selection clipboard" \
  24. v="xclip -selection clipboard -o" \
  25. lf="lfcd" \
  26. dcu='docker compose up' \
  27. dce='docker compose exec' \
  28. dps="docker ps" \
  29. ds="docker stop" \
  30. dce-test='docker compose exec fpm ./artisan test' \
  31. dc-phpunit='docker compose exec fpm ./vendor/bin/phpunit' \
  32. dm='mysql -h localhost -P 33061 --protocol=tcp -u root -psecret' \
  33. staging-mysql='mysql --host tf-codium-staging.ch66levpagqo.ap-southeast-2.rds.amazonaws.com --user=root --password=r43r34rg' \
  34. mailhog='docker run -d --restart unless-stopped -p 1025:1025 -p 8025:8025 mailhog/mailhog' \
  35. t12wl='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 workspace list ' \
  36. t12ws='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 workspace select ' \
  37. t12wd='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 workspace delete ' \
  38. t12='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 ' \
  39. ducks='du -cks * | sort -rn | head' \
  40. fn="find . -name" \
  41. artisan="docker compose exec fpm php artisan" \
  42. tinker="docker compose exec fpm php artisan tinker" \
  43. phpunit="docker compose exec fpm ./vendor/bin/phpunit" \
  44. paratest="docker compose exec fpm ./test" \
  45. jsonlint="python -m json.tool" \
  46. fresh="docker compose exec fpm php artisan migrate:fresh --seed" \
  47. shrug="echo '¯\\_(ツ)_/¯' | xclip -selection clipboard && echo 'Copied ASCII shrug to clipboard'" \
  48. alias \
  49. c="xclip -selection clipboard" \
  50. v="xclip -selection clipboard -o"
  51. if [[ $(uname) == 'Darwin' ]]; then
  52. alias \
  53. c="pbcopy" \
  54. v="pbpaste"
  55. fi
  56. alias jack-paratest="dce app-fpm ./test"
  57. alias jack-phpunit="dce app-fpm ./vendor/bin/phpunit"