This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Worktrees function START | |
| # # Git worktree helper function: wt <feature-name> | |
| wt() { | |
| emulate -L zsh # localise options for zsh | |
| set -e | |
| local project_dir | |
| project_dir=$(git rev-parse --show-toplevel 2>/dev/null) || { | |
| echo "❌ Not inside a Git repository." | |
| return 1 |