diff --git a/README.md b/README.md index 5b87a190..6469d851 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ bash <(curl -fsSL https://dot.risunosu.com/wsl) Clone this repository and run the following command. ```bash -mise i && mise r buni +mise i ``` ### ๐Ÿงต Lint and Format @@ -76,7 +76,7 @@ mise i && mise r buni The following command will lint and format the code. (including auto-fix) ```bash -mise r check +mise check ``` ### โœ๏ธ Commit @@ -84,7 +84,7 @@ mise r check The following command will commit the changes interactively. ```bash -mise r commit +mise commit ``` ## ๐Ÿ“œ License diff --git a/mise.toml b/mise.toml index 196727fd..44c0e826 100644 --- a/mise.toml +++ b/mise.toml @@ -225,3 +225,7 @@ hide = true # .bashrc is not detected by shfmt --find run = "git_files=$(git ls-files) && scripts=$(shfmt --find $git_files) && echo wsl/home/.bashrc $scripts" hide = true + +[hooks] +# skip in CI +postinstall = "[[ \"${CI}\" == 'true' ]] || mise run buni"