diff options
author | Rubem Pacelli <rubem.engenharia@gmail.com> | 2023-12-04 03:49:51 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 03:49:51 -0300 |
commit | 3b7f5b9fceae663c9a6e2e8150d8c6e26bb49af8 (patch) | |
tree | 8092967f9063e09ce0412d216cbc9d3ef568e920 | |
parent | 4e1aada97b2425d58733fe16201d97f27f7c8f32 (diff) |
Delete docs/aliases.md
-rw-r--r-- | docs/aliases.md | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/docs/aliases.md b/docs/aliases.md deleted file mode 100644 index 9c298b1..0000000 --- a/docs/aliases.md +++ /dev/null @@ -1,39 +0,0 @@ -## Aliases - -**navi** doesn't have support for aliases as first-class citizens at the moment. - -However, it is trivial to create aliases using **navi** + a few conventions. - -For example, suppose you decide to end some of your commands with `:: <some_alias>`: - -```bash -% aliases - -# This is one command :: el -echo lorem ipsum - -# This is another command :: ef -echo foo bar -``` - -Then, if you use **navi** as a [shell scripting tool](shell_scripting.md), you could add something similar to this in your `.bashrc`-like file: - -```bash -navialias() { - navi --query ":: $1" --best-match -} - -alias el="navialias el" -alias ef="navialias ef" -``` - -If you don't want to use these conventions, you can even add full comments in your aliases: - -```bash -navibestmatch() { - navi --query "$1" --best-match -} - -alias el="navibestmatch 'This is one command'" -alias ef="navibestmatch 'This is another command'" -``` |