Run two Claude Code accounts simultaneously on macOS without re-authenticating by using separate configuration directories.
- Create Separate Config Directories
mkdir ~/.claude
mkdir ~/.claude-cb
iterm2:brew install iterm2 --caskCTRL+~ to be Quake-compatible :), choose whatever suits your needs.| # Useful references: | |
| # | |
| # https://superuser.com/questions/992511/emulate-a-keyboard-button-via-the-command-line | |
| # https://ss64.com/vb/sendkeys.html | |
| # https://social.technet.microsoft.com/Forums/windowsserver/en-US/96b339e2-e9da-4802-a66d-be619aeb21ac/execute-function-one-time-in-every-10-mins-in-windows-powershell?forum=winserverpowershell | |
| # https://learn-powershell.net/2013/02/08/powershell-and-events-object-events/ | |
| # | |
| # show up time | |
| (Get-Date) - (Get-CimInstance Win32_OperatingSystem).LastBootUpTime |
| Set-Alias appcmd "$env:ProgramFiles\IIS Express\appcmd.exe" | |
| appcmd list site /text:SITE.NAME | % { appcmd delete site $_ } | |
| # or remove IISExpress directory | |
| Remove-Item -Recurse $env:USERPROFILE\Documents\IISExpress |
| upload(files) { | |
| const config = { | |
| onUploadProgress: function(progressEvent) { | |
| var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total) | |
| console.log(percentCompleted) | |
| } | |
| } | |
| let data = new FormData() | |
| data.append('file', files[0]) |