diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2017-07-23 14:07:56 +0200 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2017-07-23 14:09:05 +0200 |
| commit | 30ebdeee6e7bf7e11cf02a00e9d5dd7eb4876f96 (patch) | |
| tree | 0fd3be11d9c4164ad42c1fc79d716476b8acd85c | |
| parent | d0850bcfbe2590b3fe464f921c992e4f783f5bcb (diff) | |
bootstrap: add option to configure bashrc
| -rwxr-xr-x | bootstrap.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 9029c58..2f9f6ec 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -193,6 +193,24 @@ install(){ done fi + if ! grep /etc/static/bashrc /etc/bashrc &> /dev/null; then + while true; do + read -p "Would you like to configure /etc/bashrc? [y/n] " ANSWER + case $ANSWER in + y|Y) + echo 'if test -e /etc/static/bashrc; then . /etc/static/bashrc; fi' | sudo tee -a /etc/bashrc + break + ;; + n|N) + break + ;; + *) + echo "Please answer 'y' or 'n'..." + ;; + esac + done + fi + # Finish echo -e ""$GREEN"You're all done!"$ESC"" echo -e "Take a look at "$YELLOW"~/.nixpkgs/darwin-configuration.nix"$ESC" to get started." |
