Skip to content
Chris Marsh edited this page Feb 13, 2021 · 28 revisions

PureLine

A simple but powerful Powerline style prompt for the Bash shell written in Bash script. Providing you with information right on the commandline.

Pureline was inspired by Bash-Powerline-Shell and is designed to make configuration easy, using either full 256 color or just the basic terminal colors - allowing colors to be set by the terminal (eg Xresources or profiles).

Features

  • Extensible and feature rich written in bash script. Pureline uses bash script v4 and needs no other external dependencies. Just download and source the script to get going. You can extend the features for personal use or contributing to PureLine.
  • Configuration and custom color schemes are all done with bash script and easy to follow examples are included.

Segments

PureLine comes fully loaded with segments for:

  • Built-in segments

    • Time: shows the current time
    • User: can show user name, host or ip information
    • Path: shows the current working directory, either current directory, full path or trimmed
    • Background Jobs: Shows the number of background jobs running
    • Read-only: indicates if you are in a read only directory
    • Return code: shows the result of last command
    • Newline: lets you customize and split your prompt across multiple lines
    • Prompt: command prompt indicating normal user or root
  • External Segments

    • AWS Profile: Show the current AWS profile name
    • Battery: Battery level indicator
    • Conda Env:Show the current Python Conda environment name
    • Duration: The time taken for the last command executed
    • Git: Show the current git repository, branch and status
    • Kubernetes: Show the kubernetes context/namespace
    • Screen Session: Show the current screen session name
    • SSH: Indicate when in an ssh session and optionally show host or ip
    • Virtual Env: Show the current python env environment name

    Some segments are built-in to PureLine and others are provided as plugins - but to use them you don't need to know which. Just fire up PureLine with your config and your good to go.

Screenshots

Basic Prompt

Duration and Git segments

Battery and Git segments

Time and Python Env segment

Jobs and Prompts segment

SSH segment

<< Pureline | Installation >>