Skip to content

Enable -s with no input text to read previous command output #4

@tk755

Description

@tk755

Using $ q -s without any additional input text should take the previous shell command output as input text.

This can be used to fix outputs and read errors without explicitly stating them like so:

$ git push
fatal: The current branch dev has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin dev

To have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.
$ q -s
git push --set-upstream origin dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions