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.

48 lines
1.4 KiB

9 months ago
9 months ago
  1. #!/bin/sh
  2. # Misc
  3. alias q='exit'
  4. alias ls="ls --color=auto"
  5. alias ll="ls -G -alh"
  6. alias vim='nvim'
  7. alias grep='grep --color=auto'
  8. alias vz="nvim ${ZDOTDIR}/.zshrc && source ${ZDOTDIR}/.zshrc"
  9. alias va="nvim ~/.config/aliasrc && source ${ZDOTDIR}/.zshrc"
  10. alias sz='source ~/.zshrc'
  11. alias c="xclip -selection clipboard"
  12. alias v="xclip -selection clipboard -o"
  13. alias ducks='du -cks * | sort -rn | head'
  14. # Docker
  15. alias dc="docker compose"
  16. alias dcu='docker compose up'
  17. alias dce='docker compose exec'
  18. alias dcr='docker compose run'
  19. alias dps="docker ps"
  20. alias ds="docker stop"
  21. # Docker + Laravel
  22. alias artisan="docker compose exec fpm php artisan"
  23. alias tinker="docker compose exec fpm php artisan tinker"
  24. alias phpunit="docker compose exec fpm ./vendor/bin/phpunit"
  25. alias paratest="docker compose exec fpm ./test"
  26. alias fresh="docker compose exec fpm php artisan migrate:fresh --seed"
  27. alias ts="~/.local/bin/tmux-sessionizer"
  28. # Clipboard
  29. alias c="xclip -selection clipboard"
  30. alias v="xclip -selection clipboard -o"
  31. if [[ $(uname) == 'Darwin' ]]; then
  32. alias c="pbcopy"
  33. alias v="pbpaste"
  34. fi
  35. # Jack specific
  36. alias jack-artisan="dce app-fpm ./artisan"
  37. alias jack-paratest="dce app-fpm ./test"
  38. alias jack-phpunit="dce app-fpm ./vendor/bin/phpunit"
  39. alias jack-subscription-artisan="dce subscription-fpm ./artisan"
  40. alias jack-subscription-paratest="dce subscription-fpm ./test"
  41. alias jack-subscription-phpunit="dce subscription-fpm ./vendor/bin/phpunit"