Skip to content

Alias support for subcommands #4482

@mqudsi

Description

@mqudsi

Suggestion for fish 3.0: support aliasing command subcommand to something

Reason: it'll let you do cool things with git (surprise!) like alias 'git log' 'git log --name-status' since there is not yet a git option for log.nameStatus or similar.

It would be very straightforward to simply check if arg == aliased arg and call the alternative command in its place or else shell out to the actual command.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions