From f20d4971158c02280076ce619a6cb6706c4e4d26 Mon Sep 17 00:00:00 2001 From: pvincent Date: Fri, 21 Aug 2026 13:13:52 +0400 Subject: [PATCH] devmode hook pre-push --- README.md | 10 ++++++---- lib/devmode.bash | 7 +++++++ test/miaou-bash.test.bash | 1 + 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ebd73bd..e7fc5ef 100644 --- a/README.md +++ b/README.md @@ -27,17 +27,19 @@ We would love to hear your thoughts! Any feedback, suggestions, or contributions are greatly appreciated. -- [contact@artcode.re](mailto:contact@artcode.re) -## install +## Get started + +### install `source <(curl -s https://git.artcode.re/miaou/miaou-bash/raw/branch/main/install.sh)` -## upgrade +### upgrade `miaou-bash --self-upgrade` -## uninstall +### uninstall -`miaou-bash --uninstall +`miaou-bash --uninstall` ## Readline main bindings diff --git a/lib/devmode.bash b/lib/devmode.bash index 1f78370..8a3041b 100644 --- a/lib/devmode.bash +++ b/lib/devmode.bash @@ -25,6 +25,13 @@ function dev_mode { git clone "$GIT_URL" sudo rm "$MIAOU_BASH_DIR" -rf sudo ln -s "$target" "$MIAOU_BASH_DIR" + + local hook="$target"/.git/hooks/pre-push + cat >"$hook" <