Document the percent sigil#2167
Conversation
|
Primary use case for alias cd = __zoxide_z
%cd some_dir # can be used to run builtin cdThis can also be used for wrapping a builtin command with the same name def ls [] {
%ls | sort-by size
} |
|
Now that I understood the intention, I think I found a better place for this piece of information. |
|
I think it's fine here but the it shouldn't be the only place because I didn't write the code for aliases. I wrote it to be able to run built-ins from anywhere. So, either that's another special section in another area or it's around where |
|
@fdncred |
|
|
||
| ```nu | ||
| let cmd = "ls" | ||
| %$cmd |
There was a problem hiding this comment.
I think it's fine but I'd do something like this just to drive the point home.
# call internal `ls` command
%$cmd
# call external `ls` command
^$cmd| @@ -40,6 +40,13 @@ let arguments = ["arg1", "-a", "arg2"] | |||
|
|
|||
| The caret `^` before the string interpolation symbol `$` allows that external command to be executed. | |||
This comment was marked as low quality.
This comment was marked as low quality.
Sorry, something went wrong.
There was a problem hiding this comment.
Nvm, I didn't expand the diff, and just assumed the wrong thing
Fixes #2166
Is the example too convoluted? Maybe just
?