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.

63 lines
2.8 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. dcr='docker compose run' \
  29. dps="docker ps" \
  30. ds="docker stop" \
  31. dce-test='docker compose exec fpm ./artisan test' \
  32. dc-phpunit='docker compose exec fpm ./vendor/bin/phpunit' \
  33. dm='mysql -h localhost -P 33061 --protocol=tcp -u root -psecret' \
  34. staging-mysql='mysql --host tf-codium-staging.ch66levpagqo.ap-southeast-2.rds.amazonaws.com --user=root --password=r43r34rg' \
  35. mailhog='docker run -d --restart unless-stopped -p 1025:1025 -p 8025:8025 mailhog/mailhog' \
  36. 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 ' \
  37. 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 ' \
  38. 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 ' \
  39. t12='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 ' \
  40. ducks='du -cks * | sort -rn | head' \
  41. fn="find . -name" \
  42. artisan="docker compose exec fpm php artisan" \
  43. tinker="docker compose exec fpm php artisan tinker" \
  44. phpunit="docker compose exec fpm ./vendor/bin/phpunit" \
  45. paratest="docker compose exec fpm ./test" \
  46. jsonlint="python -m json.tool" \
  47. fresh="docker compose exec fpm php artisan migrate:fresh --seed" \
  48. shrug="echo '¯\\_(ツ)_/¯' | xclip -selection clipboard && echo 'Copied ASCII shrug to clipboard'" \
  49. dab="cat ~/Documents/dab.txt | xclip -selection clipboard && echo 'Copied ASCII dab to clipboard'"
  50. alias \
  51. c="xclip -selection clipboard" \
  52. v="xclip -selection clipboard -o"
  53. if [[ $(uname) == 'Darwin' ]]; then
  54. alias \
  55. c="pbcopy" \
  56. v="pbpaste"
  57. fi
  58. alias jack-paratest="dce app-fpm ./test"
  59. alias jack-phpunit="dce app-fpm ./vendor/bin/phpunit"