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.

50 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 ~/.zshrc && source ~/.zshrc'
  9. alias va='nvim ~/.config/aliasrc && source ~/.zshrc'
  10. alias sz='source ~/.zshrc'
  11. alias c="xclip -selection clipboard"
  12. alias v="xclip -selection clipboard -o"
  13. alias lf="lfcd"
  14. alias ducks='du -cks * | sort -rn | head'
  15. # Docker
  16. alias dc="docker compose"
  17. alias dcu='docker compose up'
  18. alias dce='docker compose exec'
  19. alias dcr='docker compose run'
  20. alias dps="docker ps"
  21. alias ds="docker stop"
  22. # Docker + Laravel
  23. alias artisan="docker compose exec fpm php artisan"
  24. alias tinker="docker compose exec fpm php artisan tinker"
  25. alias phpunit="docker compose exec fpm ./vendor/bin/phpunit"
  26. alias paratest="docker compose exec fpm ./test"
  27. alias fresh="docker compose exec fpm php artisan migrate:fresh --seed"
  28. alias ts="~/.local/bin/tmux-sessionizer"
  29. alias tmux="tmux attach-session || tmux"
  30. # Clipboard
  31. alias c="xclip -selection clipboard"
  32. alias v="xclip -selection clipboard -o"
  33. if [[ $(uname) == 'Darwin' ]]; then
  34. alias c="pbcopy"
  35. alias v="pbpaste"
  36. fi
  37. # Jack specific
  38. alias jack-artisan="dce app-fpm ./artisan"
  39. alias jack-paratest="dce app-fpm ./test"
  40. alias jack-phpunit="dce app-fpm ./vendor/bin/phpunit"
  41. alias jack-subscription-artisan="dce subscription-fpm ./artisan"
  42. alias jack-subscription-paratest="dce subscription-fpm ./test"
  43. alias jack-subscription-phpunit="dce subscription-fpm ./vendor/bin/phpunit"