Shell activation
Makes ordinary git worktree commands use Riftri in your terminal. For one
agent session, use riftri exec instead.
Turn it on
In zsh (swap zsh for bash or sh):
eval "$(riftri shell hook zsh)"
riftri enableIn PowerShell:
Invoke-Expression ((riftri shell hook powershell) -join [Environment]::NewLine)
riftri enableRun riftri enable in the repository to opt it in. The hook covers this
shell and its children; enablement is saved for the repository and its linked
worktrees. Both are needed.
git worktree add ../app-auth -b feature/auth mainOther Git commands still go to Git. Riftri never edits your shell profile.
Check or turn it off
riftri shell status
riftri disabledisable removes the repository opt-in. To also deactivate the current
session:
eval "$(riftri shell deactivate zsh)"Invoke-Expression ((riftri shell deactivate powershell) -join [Environment]::NewLine)If you added the hook to your profile yourself, remove that line too.