carbs

Cem's Auto Rice Bootstrapping Scripts
git clone git://git.ckyln.com/carbs.git
Log | Files | Refs | README | LICENSE

commit 5e1987a145f111765d38a05d4e2cc1fc3f907d0c
parent 67c24feb171f2daed44773f6eb63901a5f8f0033
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 17 Jul 2019 11:49:22 +0300

defaults for dmenu and bashrc

Diffstat:
Mcarbs | 18++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/carbs b/carbs @@ -183,8 +183,13 @@ then while : do clear - printf "${BLUE}Would you like to configure dmenu?\n(y/n) " - read answer + if [ $DEFAULTS = FALSE ] + then + printf "${BLUE}Would you like to configure dmenu?\n(y/n) " + read answer + else + answer=y + fi case $answer in y) ${EDITOR-nano} $PWD/config.h @@ -209,8 +214,13 @@ then while : do clear - printf "${RED}Should I install bashrc? This is dangerous if this is not a fresh system\n(y/n) " - read answer + if [ $DEFAULTS = FALSE ] + then + printf "${RED}Should I install bashrc? This is dangerous if this is not a fresh system\n(y/n) " + read answer + else + answer=y + fi case $answer in y) cp -f $CARBHOME/dotfiles/.bashrc $HOME/.bashrc && printf "${GREEN}Successfully installed BashRC" | tee -a $CARBSHOME/log