Commit Graph
100 Commits
Author SHA1 Message Date
Rezart Qelibari dd3ea08ea1 Activate brew-updater launch daemons immediately 2022-04-06 19:32:30 +02:00
Rezart Qelibari 9385a345b4 Add 05-install-remap-keys.sh module 2022-04-06 19:32:25 +02:00
Rezart Qelibari 77c0ac8cdf Split prerequisites check into three stages 2022-04-06 16:43:21 +02:00
Rezart Qelibari 7f55fb66f8 Prevent print from parsing usage string options 2022-04-06 11:30:04 +02:00
Rezart Qelibari d2139d7b38 Update zshlib 2022-04-05 19:48:16 +02:00
Rezart Qelibari f49452fff1 Add 04-install-brew-apps.sh module 2022-04-05 19:48:16 +02:00
Rezart Qelibari f9131f8682 Add possiblity to check only runtime dependencies 2022-04-05 19:48:16 +02:00
Rezart Qelibari 4296814786 Add MACOS_SYSTEM_DEBUG 2022-04-05 19:48:16 +02:00
Rezart Qelibari 449762383d Add vim filetype comment to module 2022-04-05 19:48:16 +02:00
Rezart Qelibari 9974bce07c Indent here doc with tabs 2022-04-05 19:48:14 +02:00
Rezart Qelibari b96fe10a72 Use hostname as default for computr name 2022-04-05 19:47:44 +02:00
Rezart Qelibari 0fd4ed6479 Accept answers for show-questions subcommand 2022-04-05 19:47:40 +02:00
Rezart Qelibari 149c34e96e Revert "Stop on first error during installation"
This reverts commit 4e0f5bb3cd.
2022-04-05 19:46:44 +02:00
Rezart Qelibari bbb1b1e77c Add 03-install-brew.sh module 2022-04-05 19:46:38 +02:00
Rezart Qelibari 366bd3c706 Preserve env vars and do shallow copy 2022-04-05 18:47:17 +02:00
Rezart Qelibari 92185876f9 Update zshlib 2022-04-05 18:47:13 +02:00
Rezart Qelibari 4e0f5bb3cd Stop on first error during installation 2022-03-31 12:23:13 +02:00
Rezart Qelibari 6cf66ccc00 Stop option parsing in arguments for lop 2022-03-31 12:23:13 +02:00
Rezart Qelibari 2f8ffef31d Skip preboot update 2022-03-31 12:23:13 +02:00
Rezart Qelibari 782ed62420 Filter password options from log 2022-03-31 12:23:13 +02:00
Rezart Qelibari 547683b980 Improve log messages of module 02 2022-03-31 12:23:13 +02:00
Rezart Qelibari 3289d2fbbf Update zshlib 2022-03-31 12:23:13 +02:00
Rezart Qelibari 3b70137c27 Hide cursor during installation run 2022-03-31 12:23:13 +02:00
Rezart Qelibari 471d41bf11 Disable tty echo during installation run 2022-03-31 12:23:13 +02:00
Rezart Qelibari 0a604dbd69 Fix misspelling 2022-03-31 12:23:13 +02:00
Rezart Qelibari 3a2513ee60 Remove double call to configureBasicSystem 2022-03-31 12:23:13 +02:00
Rezart Qelibari 70dfb1439c Add user picture using dscl 2022-03-31 12:23:13 +02:00
Rezart Qelibari 74d74bc1f6 Pass verbosity level down to modules 2022-03-31 12:23:13 +02:00
Rezart Qelibari 5c0c73f5e8 Use new lop and indicateActivity 2022-03-31 12:23:13 +02:00
Rezart Qelibari 322a2aa757 Use loadModules and askUserModuleQuestions 2022-03-31 12:23:13 +02:00
Rezart Qelibari 79693877b2 Stop docopts from parsing arguments as options 2022-03-31 12:23:13 +02:00
Rezart Qelibari 910f795800 Update lop commands 2022-03-31 12:23:13 +02:00
Rezart Qelibari df35017435 Do not replace newline with tr 2022-03-31 12:23:13 +02:00
Rezart Qelibari 68c7b399c5 Add debug output to 02-create-filevault-user 2022-03-31 12:23:13 +02:00
Rezart Qelibari 690a4e0f4d Reset module options for each module in install.sh 2022-03-31 12:19:49 +02:00
Rezart Qelibari 5e78c1ed97 Make git branch change quite in bootstrap.sh 2022-03-01 12:29:14 +01:00
Rezart Qelibari 91b1b6ecd1 Add DOCOPTS_URL to bootstrap.sh 2022-03-01 12:26:53 +01:00
Rezart Qelibari 7619c10845 Add color output & error handling to bootstrap.sh 2022-03-01 11:25:34 +01:00
Rezart Qelibari 45711e79c5 Log install module call 2022-02-28 08:27:04 +02:00
Rezart Qelibari f802d9c8ea Use default username/fullname hint only with value 2022-02-28 08:26:06 +02:00
Rezart Qelibari 9841c026cf Allow branch specification in bootstrap.sh 2022-02-28 07:53:38 +02:00
Rezart Qelibari 2632299ac4 Add color to bootstrap.sh output 2022-02-28 06:59:02 +02:00
Rezart Qelibari 803db08906 Add current dir at end of path instead of front 2022-02-27 10:48:26 +02:00
Rezart Qelibari db53df3358 Add 02-create-filevault-user.sh module 2022-02-18 20:16:10 +01:00
Rezart Qelibari eae2abbb01 Support validator question argument for select 2022-02-18 19:53:39 +01:00
Rezart Qelibari 90758b2fdd Pass arg $0 to module_main 2022-02-18 19:53:28 +01:00
Rezart Qelibari ead076a8e0 Call getUsage after checking prerequisites in lib 2022-02-18 19:44:31 +01:00
Rezart Qelibari 14f2107edf Move showQuestions to lib.sh 2022-02-18 19:44:31 +01:00
Rezart Qelibari 0f6313e777 Add module_main to lib.sh 2022-02-18 19:44:31 +01:00
Rezart Qelibari 4f9f97d44f Refactor 01-system-settings.sh module 2022-02-18 19:44:31 +01:00
Rezart Qelibari 2afdfff2f2 Update zshlib 2022-02-18 19:44:31 +01:00
Rezart Qelibari b68ed20d47 Compare DEBUG variable as string instead of number 2022-02-18 19:44:31 +01:00
Rezart Qelibari 0322e24aa0 Add 01-system-settings.sh module 2022-02-18 19:44:31 +01:00
Rezart Qelibari 1129a4bdd4 Add comments to bootstrap.sh steps 2022-02-18 19:44:31 +01:00
Rezart Qelibari 88794bca33 Create library for modules written as ZSH scripts 2022-02-18 19:44:31 +01:00
Rezart Qelibari efe91a17b8 Ensure doctops in bootstrap.sh 2022-02-18 19:44:31 +01:00
Rezart Qelibari 2f7f58b2c2 Pass arguments of bootstrap to install.sh 2022-02-18 19:44:31 +01:00
Rezart Qelibari 3a3324e1c5 Introduce elision by removing unnecessary quoting 2022-02-18 19:44:26 +01:00
Rezart Qelibari 8b995d0938 Do not parse trailing semicolon in question args 2022-02-14 17:22:32 +01:00
Rezart Qelibari 141f3faeea Use _DIR instead of pwd 2022-02-14 17:22:32 +01:00
Rezart Qelibari 2b87c97692 Require root to run install.sh 2022-02-14 17:22:32 +01:00
Rezart Qelibari 713d994ff1 Write config only in config-only mode 2022-02-14 17:22:25 +01:00
Rezart Qelibari 1011552725 Fix misspelled lop command 2022-02-13 23:23:49 +01:00
Rezart Qelibari da96cc2cf0 Add default arg to info question type 2022-02-13 23:14:56 +01:00
Rezart Qelibari 302956c7e1 Export ASTZWEIG_ZSHLIB in install.sh 2022-02-13 22:27:49 +01:00
Rezart Qelibari ca8b8d0b7a Insert colon at RIF scheme in README 2022-02-13 22:27:05 +01:00
Rezart Qelibari c472221459 Check prerequisites in install.sh 2022-02-13 21:54:17 +01:00
Rezart Qelibari 460083a95d Ensure docopts installation before using it 2022-02-13 21:04:34 +01:00
Rezart Qelibari 1ba6fd2d6a Use command to ask modules for questions 2022-02-13 21:01:59 +01:00
Rezart Qelibari 594467ec52 Add log messages to install.sh 2022-02-12 20:21:15 +01:00
Rezart Qelibari 216cd329c0 Add options to configure logging 2022-02-12 19:57:36 +01:00
Rezart Qelibari 4eb51e34a7 Allow config generation for later use 2022-02-12 19:28:50 +01:00
Rezart Qelibari 1c3b4b7c62 Update zshlib 2022-02-12 19:20:17 +01:00
Rezart Qelibari 4e78a763ca Install selected modules 2022-02-11 16:05:02 +01:00
Rezart Qelibari fee0acec8b Fix logical error 2022-02-07 20:04:27 +01:00
Rezart Qelibari 73940ad0e6 Use lop instead of hio 2022-02-07 19:45:19 +01:00
Rezart Qelibari bbbb80e531 Add suffix module filtering and module search path 2022-02-07 19:43:04 +01:00
Rezart Qelibari 0338a1e31d Update zshlib 2022-02-07 19:42:52 +01:00
Rezart Qelibari 26f673f2ae Unite common functionality in loadModules 2022-02-07 17:07:59 +01:00
Rezart Qelibari d602eafdc1 Add -l option to install.sh 2022-02-04 15:06:39 +01:00
Rezart Qelibari 7943cf9c78 Indent here doc with tabs 2022-02-04 15:00:05 +01:00
Rezart Qelibari 0a817025b4 Fix logical error 2022-02-04 14:58:44 +01:00
Rezart Qelibari 88e71a3fe5 Use outer array in filterModules 2022-02-04 14:58:17 +01:00
Rezart Qelibari 9feb138b39 Add modules automatically to allModules 2022-02-04 14:31:32 +01:00
Rezart Qelibari 948f995f57 Add & implement askNecessaryQuestions 2022-02-04 14:10:57 +01:00
Rezart Qelibari 366047fb20 Autoload zshlib functions for shellspec 2022-02-04 14:10:19 +01:00
Rezart Qelibari 765a35e4d0 Add process idea to README 2022-02-04 14:08:26 +01:00
Rezart Qelibari b9af20bae5 Update zshlib 2022-02-03 19:46:54 +01:00
Rezart Qelibari 27b18da190 Update zshlib 2022-01-31 13:37:07 +01:00
Rezart Qelibari a33958a1fb Add module filtering to install.sh/main 2022-01-28 19:31:27 +01:00
Rezart Qelibari eee681bae9 Limit find to maxdepth 1 when searching zshlib 2022-01-28 17:46:17 +01:00
Rezart Qelibari 60c1356158 Add vim modeline 2022-01-23 19:12:20 +01:00
Rezart Qelibari 505f808d42 Add return to trap command
Without `return` the SIGINT is ignored (the trap arg gets executed
properly though).
2022-01-23 19:05:22 +01:00
Rezart Qelibari c141b2f1f2 Clean up even in case of SIGINT and SIGTERM
ZSHs `trap EXIT` does not handle interrupt or termination signals.
2022-01-23 18:35:48 +01:00
Rezart Qelibari b70d93d73a Fix typo 2022-01-23 18:35:33 +01:00
Rezart Qelibari 07aa9a5d01 Use local variable value for trap at parse time
`trap` can not access the value of a variable defined as local once the
function body is left. So we use the value of the variable at parse time
instead of trying to access the value at runtime of the `trap` command.
2022-01-23 18:19:36 +01:00
Rezart Qelibari 8e60af9430 Do not delete temporary dir if DEBUG is set
To inspect the state of the application it is useful to checkout the
directory content of the temporary working directory. Setting the DEBUG
variable to either 1 or true stops bootstrap.sh to delete that directory,
which it does regardless if the app finished successfully or because of
an error.
2022-01-23 18:15:36 +01:00
Rezart Qelibari 069e13b863 Allow different repo urls in bootstrap.sh for dev
Having to clone from github or a remote repository in general during
development is a waste of bandwidth, time and does not work during
development while a change is being tested and not yet commited or
pushed. Now remote urls can be configured through two env variables:
MACOS_SYSTEM_REPO_URL and ZSHLIB_REPO_URL.
2022-01-23 17:57:14 +01:00
Rezart Qelibari b051463245 Autoload zshlib functions 2022-01-23 17:09:39 +01:00
Rezart Qelibari a80e1ed88f Run git quietly 2022-01-23 17:09:39 +01:00