From e361811a7a1b8a65744b6ddff3ff4e90c944865d Mon Sep 17 00:00:00 2001 From: HerrintonDarkholme <2883231+HerringtonDarkholme@users.noreply.github.com> Date: Sat, 13 May 2023 01:23:31 -0700 Subject: [PATCH] doc: update new command name `ast-grep` --- website/guide/quick-start.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/website/guide/quick-start.md b/website/guide/quick-start.md index aacc7113..f6e0eb9a 100644 --- a/website/guide/quick-start.md +++ b/website/guide/quick-start.md @@ -21,15 +21,16 @@ brew tap ast-grep/tap brew install ast-grep/tap/ast-grep ``` -The binary command, `sg`, should be available now. Let's try it with `--help`. +The binary command, `sg`, or `ast-grep`, should be available now. Let's try it with `--help`. ```shell sg --help +# if you are on Linux +ast-grep --help ``` :::danger Use `sg` on Linux -Linux has a default command `sg` for `setgroups`. You must specify `sg` command's path. -If you installed `ast-grep` via cargo, you can use `~/.cargo/bin/sg` instead of `sg`. +Linux has a default command `sg` for `setgroups`. You can use the full command name `ast-grep` instead of `sg`. :::