jack
7f6fe53c6f
feat(account): add gt account switch command
...
Adds the ability to switch between Claude Code accounts with a single command:
gt account switch <handle>
The command:
1. Detects current account by checking ~/.claude symlink target
2. If ~/.claude is a real directory, moves it to the current account config_dir
3. Removes existing ~/.claude symlink (if any)
4. Creates symlink from ~/.claude to target account config_dir
5. Updates default account in accounts.json
6. Prints confirmation with restart reminder
Handles edge cases:
- Already on target account (no-op with message)
- Target account does not exist (error with list of valid accounts)
- ~/.claude is real directory (first-time setup scenario)
Closes gt-jd8m1
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-07 21:41:51 -08:00
..
2026-01-07 21:41:51 -08:00
2026-01-07 21:41:51 -08:00
2026-01-05 00:42:24 -08:00
2026-01-03 16:11:55 -08:00
2026-01-06 13:00:46 -08:00
2026-01-06 22:52:32 -08:00
2026-01-06 22:52:32 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-05 06:58:46 +01:00
2026-01-07 20:35:06 -08:00
2026-01-05 00:21:42 -08:00
2026-01-07 19:17:28 -08:00
2026-01-07 19:17:28 -08:00
2026-01-04 13:17:39 -08:00
2026-01-07 18:24:38 -08:00
2026-01-07 18:24:38 -08:00
2026-01-07 21:08:51 -08:00
2026-01-06 19:11:58 -08:00
2026-01-03 21:37:05 +01:00
2026-01-04 15:30:57 -05:00
2026-01-03 11:49:42 -08:00
2026-01-03 16:23:44 -08:00
2026-01-06 19:11:58 -08:00
2026-01-05 00:42:24 -08:00
2026-01-07 00:18:02 -08:00
2026-01-03 21:37:05 +01:00
2026-01-06 12:59:37 -08:00
2026-01-06 20:32:02 -08:00
2026-01-04 00:17:37 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:12:27 -08:00
2026-01-06 20:32:02 -08:00
2026-01-04 19:46:27 -08:00
2026-01-03 16:11:55 -08:00
2026-01-06 21:44:05 -08:00
2026-01-04 23:13:03 -08:00
2026-01-07 20:45:58 -08:00
2026-01-07 21:38:35 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-06 22:32:35 -08:00
2026-01-03 21:00:00 -08:00
2026-01-03 21:00:00 -08:00
2026-01-05 19:39:57 -08:00
2026-01-03 16:11:55 -08:00
2026-01-05 19:39:57 -08:00
2026-01-03 16:11:55 -08:00
2026-01-06 13:09:32 -08:00
2026-01-05 00:42:24 -08:00
2026-01-03 16:11:55 -08:00
2026-01-04 15:16:56 -08:00
2026-01-03 21:37:05 +01:00
2026-01-03 16:11:55 -08:00
2026-01-06 22:32:35 -08:00
2026-01-07 00:10:05 -08:00
2026-01-03 21:53:30 -08:00
2026-01-07 00:10:05 -08:00
2026-01-06 20:40:40 -08:00
2026-01-06 20:43:27 -08:00
2026-01-06 22:50:21 -08:00
2026-01-06 20:41:01 -08:00
2026-01-06 22:32:35 -08:00
2026-01-06 21:44:05 -08:00
2026-01-06 22:52:32 -08:00
2026-01-06 22:32:35 -08:00
2026-01-07 20:48:09 -08:00
2026-01-07 20:48:09 -08:00
2026-01-07 21:08:51 -08:00
2026-01-06 19:10:43 -08:00
2026-01-06 22:54:25 -08:00
2026-01-05 00:42:24 -08:00
2026-01-06 23:37:39 -08:00
2026-01-06 22:32:35 -08:00
2026-01-06 22:32:35 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 14:33:24 -08:00
2026-01-07 00:06:55 -08:00
2026-01-06 20:32:02 -08:00
2026-01-07 21:08:51 -08:00
2026-01-07 01:35:17 -08:00
2026-01-06 13:33:20 -08:00
2026-01-06 12:59:49 -08:00