Commit Graph

274 Commits

Author SHA1 Message Date
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
Rezart Qelibari
621ca56eca Add astzweig/zshlib as submodule 2022-01-23 17:09:26 +01:00
Rezart Qelibari
74494ab45d Let the journey begin 2022-01-23 00:15:39 +01:00