Skip to content

Commit 611b9d0

Browse files
authored
play well with zshrc override
1 parent e64eac5 commit 611b9d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

local/etc/uceap.d/devcontainer_on_create.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function devcontainer_on_create() {
6666
uceap completion zsh | sudo sh -c "cat > /usr/local/share/zsh/site-functions/_uceap"
6767
gh completion --shell zsh | sudo sh -c "cat > /usr/local/share/zsh/site-functions/_gh"
6868
# Force loading of the completion script because I can't get it to autoload
69-
echo "autoload -Uz _uceap && compdef _uceap uceap" >> ~/.zshrc
69+
echo "autoload -Uz _uceap && compdef _uceap uceap" | tee -a ~/.zshrc ~/.zshrc.local
7070

7171
# Run local devcontainer lifecycle scripts
7272
if [ -x .devcontainer/onCreate.sh ]; then
@@ -93,4 +93,4 @@ Add the following to your `devcontainer.json` file:
9393
This command is the first of three (along with `updateContentCommand` and `postCreateCommand`) that finalizes container setup when a dev container is created. It and subsequent commands execute **inside** the container immediately after it has started for the first time.
9494
9595
Cloud services can use this command when caching or prebuilding a container. This means that it will not typically have access to user-scoped assets or secrets.
96-
'
96+
'

0 commit comments

Comments
 (0)