gitid attach And gitid auto
Folder-based switching maps directories to profiles.
Attach A Folder
bash
gitid attach work ~/officeWhen the shell hook runs inside ~/office or a child folder, GitID switches to the work profile.
Enable Auto Switching
bash
gitid auto enableThis enables auto-switching in GitID config and prints the shell hook.
Install the hook automatically for supported shells:
bash
gitid auto enable --installCurrently supported shell profile targets:
- zsh:
~/.zshrc - bash:
~/.bashrc
Other Auto Commands
bash
gitid auto disable
gitid auto hookgitid auto apply is an internal command used by the shell hook.