Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea/
external/
external/
bin/
12 changes: 10 additions & 2 deletions dot_zshrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ═══════════════════════════════════════
# Globals
# ═══════════════════════════════════════
export DEV_DIR="$HOME/Development/DJX"
export DEV_DIR="$HOME/PDEV/DJX"
export ZSH="$HOME/.oh-my-zsh"

# ═══════════════════════════════════════
Expand Down Expand Up @@ -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'
Expand All @@ -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
# ═══════════════════════════════════════
Expand All @@ -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
fi
18 changes: 18 additions & 0 deletions scripts/git-quick-commit-and-push.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion scripts/git-quick-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ else
fi

git add .
git commit -m "$branch $message"
git commit -m "$branch $message" --no-verify
10 changes: 10 additions & 0 deletions scripts/quick-start-wren-app.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

applicationDir="${PWD##*/}"
applicationRunName="${applicationDir//-/_}"

cd ../devenvironment/

bin/console run -f group:"$applicationRunName"

cd $application