diff --git a/.gitignore b/.gitignore index ed71c0e..eaee702 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .idea/ -external/ \ No newline at end of file +external/ +bin/ \ No newline at end of file diff --git a/dot_zshrc b/dot_zshrc index 1ba7063..f8d51e8 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -1,7 +1,7 @@ # ═══════════════════════════════════════ # Globals # ═══════════════════════════════════════ -export DEV_DIR="$HOME/Development/DJX" +export DEV_DIR="$HOME/PDEV/DJX" export ZSH="$HOME/.oh-my-zsh" # ═══════════════════════════════════════ @@ -30,6 +30,8 @@ alias doclist='docker ps --format "table {{.Names}}\t{{.Ports}}\t{{.Image}}"' # Custom Tools alias qc='$DEV_DIR/scripts/git-quick-commit.sh' +alias qcp='$DEV_DIR/scripts/git-quick-commit-and-push.sh' +alias startme='$DEV_DIR/scripts/quick-start-wren-app.sh' # Symfony alias sc='symfony console' @@ -41,6 +43,12 @@ alias csfixer='vendor/bin/php-cs-fixer fix --verbose' alias phpstan='vendor/bin/phpstan analyse' alias phpunit='php bin/phpunit' +# Wren Spec +alias frnc="bin/console attach frontend_httpd" +alias frnr="bin/console restart group:frontend" +alias redisc="bin/console attach redis" +alias redisclear="bin/console run -f service:redis" + # ═══════════════════════════════════════ # Theme & Style # ═══════════════════════════════════════ @@ -65,4 +73,4 @@ source "$ZSH/oh-my-zsh.sh" # Syntax highlighting (should load AFTER Oh My Zsh) if [[ -f /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -fi \ No newline at end of file +fi diff --git a/scripts/git-quick-commit-and-push.sh b/scripts/git-quick-commit-and-push.sh new file mode 100755 index 0000000..bbde3c1 --- /dev/null +++ b/scripts/git-quick-commit-and-push.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +branch=$(git branch --show-current) + +if [ -z "$branch" ]; then + echo "Error: Not in a git repository or no branch checked out" + exit 1 +fi + +if [ -n "$1" ]; then + message="$1" +else + read -p "Enter commit message: " message +fi + +git add . +git commit -m "$branch $message" --no-verify +git push --no-verify \ No newline at end of file diff --git a/scripts/git-quick-commit.sh b/scripts/git-quick-commit.sh index ca93d64..529133c 100755 --- a/scripts/git-quick-commit.sh +++ b/scripts/git-quick-commit.sh @@ -14,4 +14,4 @@ else fi git add . -git commit -m "$branch $message" +git commit -m "$branch $message" --no-verify diff --git a/scripts/quick-start-wren-app.sh b/scripts/quick-start-wren-app.sh new file mode 100755 index 0000000..ef380f7 --- /dev/null +++ b/scripts/quick-start-wren-app.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +applicationDir="${PWD##*/}" +applicationRunName="${applicationDir//-/_}" + +cd ../devenvironment/ + +bin/console run -f group:"$applicationRunName" + +cd $application \ No newline at end of file