Question: Is there a way to get the output of the last command?
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 27k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
Question
I know this might be a silly question, but, is there a way to achieve the following?
λ command1
# command1 output
λ <shortcut_or_command>
# command1 output
Where shortcut_or_command would be what I'm looking for, a way to retrieve the last output (not the last exit code, just the last output).
I found a shortcut named "Show alternative console buffer (last command output)", but I don't know what it does.
Thanks!
Checklist
- I have read the documentation and made sure what I'm looking for isn't present, or is unclear.
- I have searched for similar issues, and either this question wasn't asked before, or I didn't find any that describe my question.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names only the “Show alternative console buffer (last command output)” shortcut and no source files or tests. Start by checking the Cmder documentation and behavior of that shortcut; done would mean clearly documenting whether the last command's output can be retrieved and how.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100