From fb09d7d1a184e077e680819621ab60f6a457ec7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Sun, 24 May 2020 19:42:20 +0200 Subject: [PATCH] docs: add alias --save flag (#1874) --- docs/commands/alias.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/commands/alias.md b/docs/commands/alias.md index d0a46eee62..d1219f3598 100644 --- a/docs/commands/alias.md +++ b/docs/commands/alias.md @@ -1,11 +1,17 @@ # alias -This command allows you to define shortcuts for other common commands. +This command allows you to define shortcuts for other common commands. By default, they only apply to the current session. To persist them, add `--save`. + +Syntax: `alias {flags} [] {}` The command expects three parameters: * the name of alias * the parameters as a space-separated list (`[a b ...]`), can be empty (`[]`) * the body of the alias as a `{...}` block +## Flags + +* `-s`, `--save`: Save the alias to your config (see `config --path` to edit them later) + ## Examples Define a custom `myecho` command as an alias: