Skip to content

miroslavvidovic/bash-powerline

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

Info

Informative prompt in pure Bash script.

screenshot1 screenshot2

Features

  • Prompt style: display "➡" symbol instead of "$"
  • Git branch: display "⎇ " symbol and current git branch name, or short SHA1 hash when the head is detached
  • Git branch: display "+" symbol when current branch is changed but uncommited
  • Git branch: display "↑" symbol and the difference in the number of commits when the current branch is ahead of remote (see screenshot)
  • Git branch: display "↓" symbol and the difference in the number of commits when the current branch is behind of remote (see screenshot)
  • Display "L" for local repositories
  • Display python virtualenv
  • Color code for the previously failed command
  • Display different color for the root user
  • Display "(ssh)" for ssh sessions
  • Fast execution (no noticeable delay)

Installation

Download the Bash script

And source it in your .bashrc

source ~/.bash-powerline.sh

See also

  • bash-git-prompt: An informative and fancy bash prompt for Git users
  • oh-my-zsh: zsh framework with lots of themes and plugins

About

Powerline-style Bash prompt in pure Bash script

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%