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.

49 lines
1.5 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. alias tmux="tmux attach-session || tmux"
  29. # Clipboard
  30. alias c="xclip -selection clipboard"
  31. alias v="xclip -selection clipboard -o"
  32. if [[ $(uname) == 'Darwin' ]]; then
  33. alias c="pbcopy"
  34. alias v="pbpaste"
  35. fi
  36. # Jack specific
  37. alias jack-artisan="dce app-fpm ./artisan"
  38. alias jack-paratest="dce app-fpm ./test"
  39. alias jack-phpunit="dce app-fpm ./vendor/bin/phpunit"
  40. alias jack-subscription-artisan="dce subscription-fpm ./artisan"
  41. alias jack-subscription-paratest="dce subscription-fpm ./test"
  42. alias jack-subscription-phpunit="dce subscription-fpm ./vendor/bin/phpunit"