💻 Software
Copy the output of the last command in Terminal.app
Fresh5 days ago
Mar 15, 20268514 viewsConfidence Score0%
0%
Problem
would also run the commands again and couldn't be used with interactive commands. This relies on the prompt always being : Does anyone know any better options?
Error Output
tell application "Terminal" to tell window 1 to history
do shell script "/bin/echo " & quoted form of result & ¬
" | ruby -e 'puts $<.read.split(…Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Copy the output of the last command in Terminal.app
Low Risk
If you are using at least el Capitan you can use Cmd-shift-A to select the output of the last command and Cmd-C to copy it. Unfortunately this doesn't work for previous versions. Edited to add updates from the comments: this also works for other tha…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix