From f4763e72e9a45c92b8f3a5f17405607f4469264c Mon Sep 17 00:00:00 2001 From: TR Staake Date: Tue, 1 Oct 2024 14:16:38 -0400 Subject: [PATCH] Update README.md Added note about escaping alias when using help aliasing in zsh --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 016fe834..ff6e07f1 100644 --- a/README.md +++ b/README.md @@ -247,7 +247,8 @@ alias -g -- --help='--help 2>&1 | bat --language=help --style=plain' This way, you can keep on using `cp --help`, but get colorized help pages. -Be aware that in some cases, `-h` may not be a shorthand of `--help` (for example with `ls`). +Be aware that in some cases, `-h` may not be a shorthand of `--help` (for example with `ls`). In cases where you need to use `-h` +as a command argument you can prepend `\` to the arguement (eg. `ls \-h`) to escape the aliasing defined above. Please report any issues with the help syntax in [this repository](https://github.com/victor-gp/cmd-help-sublime-syntax).