mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 16:27:03 +00:00
bootstrap: add option to configure bashrc
This commit is contained in:
parent
d0850bcfbe
commit
30ebdeee6e
1 changed files with 18 additions and 0 deletions
18
bootstrap.sh
18
bootstrap.sh
|
@ -193,6 +193,24 @@ install(){
|
||||||
done
|
done
|
||||||
fi
|
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
|
# Finish
|
||||||
echo -e ""$GREEN"You're all done!"$ESC""
|
echo -e ""$GREEN"You're all done!"$ESC""
|
||||||
echo -e "Take a look at "$YELLOW"~/.nixpkgs/darwin-configuration.nix"$ESC" to get started."
|
echo -e "Take a look at "$YELLOW"~/.nixpkgs/darwin-configuration.nix"$ESC" to get started."
|
||||||
|
|
Loading…
Add table
Reference in a new issue