Making Linux shell prompt show last return value
Fresh3 days ago
Mar 15, 20264976 viewsConfidence Score0%
0%
Problem
I'm currently on a Linux machine and the shell prompt is showing me the last return value and number of executed commands (picture included, with these numbers shown in purple). My own computer doesn't have this, how can I configure it? I'm using Xubunto, if more details are needed let me know -- I…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Making Linux shell prompt show last return value
Low Risk
It seems is Xubuntu's default shell. Edit or (depending on your system configuration) and look for a line starting with . This line sets your prompt. To add the last command's return value, add the following to that line: so it looks e.g. like the f…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix