FG

Set $PS1 differently on local computer and in ssh session

Fresh3 days ago
Mar 15, 20265703 views
Confidence Score0%
0%

Problem

I keep my home directory under version control, so that my basic configuration is easily available on any computer. My bash command prompt on my local computer is a complicated, colorful thing that includes the current git repository and its state. But I'd rather have a simple command prompt when I…

Error Output

user@host ~ $

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Set $PS1 differently on local computer and in ssh session

Low Risk

When you login via SSH, several extra environment variables get set. You could use these as a test to set your PS1 in your .profile.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment