Jakub Žádník 808e523adc
Disable alias recursion (#8397)
# Description

Prevents alias from aliasing itself. It allows a commonly requested
pattern similar to `alias ls = ls -l`.

One small issue is that the syntax highlighting is a bit off:

![alias_itself_no_color](https://user-images.githubusercontent.com/25571562/224545129-8a3ff535-347b-4a4e-b686-11493bb2a33b.png)

Fixes https://github.com/nushell/nushell/issues/8246

# User-Facing Changes

Shouldn't be a breaking change.

# Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass

# After Submitting

If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
2023-03-13 06:16:26 +13:00
..
2022-11-22 16:58:11 -08:00
2023-01-22 19:49:40 +01:00
2023-03-13 06:16:26 +13:00
2022-02-07 14:54:06 -05:00
2023-02-16 02:30:56 +00:00
2022-02-17 06:40:24 -05:00
2022-02-07 14:54:06 -05:00
2022-12-22 00:33:26 +02:00
2022-09-11 11:48:27 +03:00
2022-02-16 12:24:45 -06:00
2023-02-27 20:44:05 +13:00
2022-05-18 20:47:26 -05:00
2022-02-07 14:54:06 -05:00
2023-03-12 12:35:42 +13:00
2022-09-11 11:48:27 +03:00
2022-02-07 14:54:06 -05:00
2022-11-09 17:06:47 -08:00
2022-02-07 14:54:06 -05:00
2022-02-07 14:54:06 -05:00
2022-11-27 07:19:02 +13:00
2023-01-16 12:43:46 +01:00
2022-12-02 11:36:01 +01:00
2023-02-27 20:44:05 +13:00