Hacker News new | ask | show | jobs
by vemv 160 days ago
These are good to append to your .bashrc or .zshrc (depending on your shell of choice) and they'll be picked up.
2 comments

More generically-named env vars should not be set as an "export" in a rc file like that (IS_DEMO/DISABLE_AUTOUPDATER etc). They'll get exported to every process spawned by the shell, which could have unintended consequences.

You could instead eg:

  alias code='DISABLE_AUTOUPDATER=1 IS_DEMO=1 /usr/local/bin/code'
or write a wrapper shell script (analyse/adjust $PATH if you're going to name it the same as an existing binary/script), eg

  #!/bin/bash

  export FOO=bar

  exec /usr/local/bin/code
Oh, shame, I use claude across 4-5 devices, but thanks anyways.
I would strongly encourage you to create a global shared bashrc for your various devices - my dotfiles repo has tremendously improved my life as an eng who needs to discard dev boxes occasionally (virtual dev boxes)
Arent you going to be banned by using it on too many devices ?
They charge based on consumption as the comment below me stated.
Ah sorry, I was thinking about the Pro / Max plan, not API token usage
The Pro and Max plans don't have a device limit either.

I frequently use Claude code in disposable virtual machines.

I think they charge based on consumption, not devices.