mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 10:11:07 +00:00
Update README.md
Added note about escaping alias when using help aliasing in zsh
This commit is contained in:
parent
61c9f312c9
commit
f4763e72e9
@ -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.
|
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).
|
Please report any issues with the help syntax in [this repository](https://github.com/victor-gp/cmd-help-sublime-syntax).
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user