Skip to content

Instantly share code, notes, and snippets.

@alejandrociatti
alejandrociatti / .zshrc
Last active November 4, 2025 13:09 — forked from devnacho/.zshrc
Worktrees `wt` shortcut
# 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