Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 692 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 692 Bytes

PS1 prompt for bash

This PS1 displays time, host, user, work dir, python venv with version, git branch and it's status and detects screen session.

Script contains oneliner variant for using as macros in different programms and normal multiline variant to add to .bashrc. Git status contains: branch name, +/- if ahead/behind origin, * if there are changes that are not staged. On screen session detection PS1 displays + sign after working directory.

Samples:

image image