-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint-user.sh
More file actions
executable file
·39 lines (33 loc) · 857 Bytes
/
entrypoint-user.sh
File metadata and controls
executable file
·39 lines (33 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
set -euo pipefail
if [[ ! -a ~/.zshrc && ! -d ~/.zprezto ]]; then
if [[ -d /usr/local/lib/prezto/runcoms ]]; then
ln -s /usr/local/lib/prezto ~/.zprezto
else
echo -n "Would you like a nice shell prompt? [Y/n]: "
read -r input
case "$input" in
"" | [Yy]*)
echo -n "This could take a few seconds..."
git clone --quiet --recursive \
https://github.com/giddie/prezto.git ~/.zprezto
;;
*)
touch ~/.zshrc
;;
esac
fi
if [[ -d ~/.zprezto ]]; then
for dotfile in ~/.zprezto/runcoms/z*; do
ln -sf $dotfile ~/.$(basename $dotfile)
done
mkdir -p ~/.zprezto-extra/misc
touch ~/.zprezto-extra/misc/init.zsh
fi
fi
# if [[ ! -d ~/.asdf ]]; then
# asdf plugin add ...
# asdf install
# fi
export PATH=~/.asdf/shims:$PATH
exec "$@"