Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/aws-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@ Quick create your profile:
duploctl jit update_aws_config myprofile
```

## Shell Compatibility

The on-create script sources the AWS CLI helpers into **every installed shell's** interactive rc
file — `~/.bashrc` when `bash` is present and `~/.zshrc` when `zsh` is present (appends are
idempotent). It deliberately does not key off the login shell (`/etc/passwd` / `$SHELL`), because
images often install zsh as the terminal's default without changing the user's login shell, which
would leave the actually-used shell unconfigured. This way the helpers load on zsh-based images as
well as bash.

## References

- [Duploctl JIT Documentation](https://cli.duplocloud.com/Jit/#duplo_resource.jit.DuploJit.update_aws_config)
Expand Down
10 changes: 10 additions & 0 deletions src/direnv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ Installs direnv and places a DuploCloud direnvrc at $HOME/direnv/direnvrc
|-----|-----|-----|-----|


## Shell Compatibility

The on-create script installs the direnv configuration into **every installed shell's** interactive
rc file — `~/.bashrc` with `eval "$(direnv hook bash)"` when `bash` is present, and `~/.zshrc` with
`eval "$(direnv hook zsh)"` when `zsh` is present (appends are idempotent). It deliberately does not
key off the login shell (`/etc/passwd` / `$SHELL`): images frequently install zsh and make it the
terminal's default shell without changing the user's login shell, so detecting a single shell leaves
the shell the terminal actually launches without the hook. Writing to each installed shell's rc makes
direnv activate regardless of which shell opens — including zsh-based images such as the Anthropic
secure-AI reference image.


---
Expand Down
10 changes: 10 additions & 0 deletions src/gcloud-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ Installs Google Cloud CLI with multi-architecture support
|-----|-----|-----|-----|


## Shell Compatibility

The on-create script configures **every installed shell's** interactive rc file — `~/.bashrc` when
`bash` is present and `~/.zshrc` when `zsh` is present (appends are idempotent). Each rc sources the
shell-appropriate gcloud SDK include files (`path.bash.inc` / `completion.bash.inc` for bash, the
`.zsh.inc` variants for zsh) plus the gcloud helper functions. It deliberately does not key off the
login shell (`/etc/passwd` / `$SHELL`), because images often install zsh as the terminal's default
without changing the user's login shell, which would leave the actually-used shell unconfigured. This
makes the gcloud CLI path and completion load correctly on zsh-based images (such as the Anthropic
secure-AI reference image) as well as bash.


---
Expand Down
11 changes: 10 additions & 1 deletion src/onepassword-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ This authentication method allows biometric authentication within the devcontain
- Extracted during the sign-in process using `op signin --raw`
- Mapped to the correct account UUID from `op account list`
- Exported to the current script environment for immediate use
- Appended to `.bashrc` for persistence across terminal sessions
- Appended to every installed shell's rc file for persistence across terminal sessions (see [Shell Compatibility](#shell-compatibility))

**Note**: The account URL may be specified with or without the `https://` prefix. The feature handles both formats when looking up the account UUID.

Expand Down Expand Up @@ -419,6 +419,15 @@ The install script automatically disables problematic repositories (like yarn) b

This issue is specific to Debian Trixie which uses sequoia (`sqv`) for GPG verification instead of the traditional apt-key approach.

## Shell Compatibility

The on-create script writes its persisted variables and the session-token sourcing line into **every
installed shell's** interactive rc file — `~/.bashrc` when `bash` is present and `~/.zshrc` when `zsh`
is present (appends are idempotent). It deliberately does not key off the login shell (`/etc/passwd`
/ `$SHELL`), because images often install zsh as the terminal's default without changing the user's
login shell, which would leave the actually-used shell unconfigured. This makes the feature work on
zsh-based images (such as the Anthropic secure-AI reference image) as well as bash.

## References

- [1Password CLI Documentation](https://developer.1password.com/docs/cli) - Official CLI reference and setup guides
Expand Down
2 changes: 1 addition & 1 deletion src/terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ The feature installs `tf.sh` in two locations:
- `/usr/local/bin/tf` - Executable wrapper (use as `tf` command)
- `/usr/local/share/duplocloud/tf.sh` - Sourceable shell script (for functions)

Both files are sourced in shell rc files (`.bashrc`, `.zshrc`, `/etc/bash.bashrc`) to make the helper functions available in interactive shells.
The `tf` wrapper is placed on `PATH`, so it works in any interactive shell (bash or zsh) with no rc-file changes. If you want the underlying helper functions in your current shell, source the sharable copy directly: `source /usr/local/share/duplocloud/tf.sh`.

## References

Expand Down