Skip to content

Commit d069659

Browse files
configuring.
1 parent 70f076a commit d069659

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

src/devcontainers/base/src/.devcontainer/nhsnotify/postcreatecommand.sh

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#!/bin/bash
22
CURRENT_DIR=$(pwd)
33

4-
5-
echo 'export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"' >> ~/.zshrc
6-
sed -i "/plugins=/c\plugins=(git ssh-agent sudo terraform dirhistory)" ~/.zshrc
7-
cat ~/.zshrc
8-
94
echo "copying defaults"
105
echo "getting nhse repo template"
116
echo "Cloning $REPO into $DEST"
@@ -36,21 +31,14 @@ git switch -C $UPDATE_BRANCH
3631
\cp -f $DEST/.gitignore ./
3732
\cp -f $DEST/.gitleaksignore ./
3833

39-
#git add .
40-
#export GPG_TTY=$(tty)
41-
#git commit -m "Update default files from $REPO" || echo "No changes to commit"
42-
#git switch $CURRENT_BRANCH
43-
#git merge $UPDATE_BRANCH -m "Merge default files from $REPO"
4434

4535
echo "$REPO template complete"
4636

47-
echo "adding gpg tty to zshrc"
48-
echo 'export GPG_TTY=$(tty)' >> ~/.zshrc
49-
echo "added gpg tty to zshrc"
37+
echo "reload shell"
38+
source ~/.zshrc
39+
echo "reloaded shell"
5040

5141
echo "running make config"
52-
#source ~/.zshrc
53-
#echo "sourced .zshrc"
5442
make config
5543
echo "make config complete"
5644

@@ -60,3 +48,14 @@ echo "sorting certs"
6048
sudo cp -r --update=none /home/ca-certificates/. /usr/local/share/ca-certificates
6149
sudo update-ca-certificates
6250
echo "sorted certs"
51+
52+
53+
echo "configuring ohmyzsh"
54+
echo 'export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"' >> ~/.zshrc
55+
sed -i "/plugins=/c\plugins=(git ssh-agent sudo terraform dirhistory)" ~/.zshrc
56+
cat ~/.zshrc
57+
echo "configured ohmyzsh"
58+
59+
echo "adding gpg tty to zshrc"
60+
echo 'export GPG_TTY=$(tty)' >> ~/.zshrc
61+
echo "added gpg tty to zshrc"

0 commit comments

Comments
 (0)