---
# System prepended metadata

title: Quick PS1 show cluster OpenShift

---

# Quick PS1 show cluster OpenShift

```
PS1="${PS1}[\$(oc whoami --show-server | awk -F '.' '{print \$2}')] "
```