diff --git a/tag-zsh/zsh/configs/functions.zsh b/tag-zsh/zsh/configs/functions.zsh index 1a2141f..315f83a 100644 --- a/tag-zsh/zsh/configs/functions.zsh +++ b/tag-zsh/zsh/configs/functions.zsh @@ -15,6 +15,15 @@ function db { is_linux() { [[ "$(uname)" == 'Linux' ]] } is_macos() { [[ "$(uname)" == "Darwin" ]] } +function composer() { + docker run -u $UID -it --rm \ + -v $(pwd):/app \ + -v ~/.composer:/root/.composer \ + -v ~/.ssh:/root/.ssh \ + composer \ + composer $* +} + # Run 'phpunit' or 'pest' depending on the project. function p () { vendor/bin/$(phpunit-or-pest) $*;