Skip to content

bcmarinacci/powerline-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Powerline Shell

A Powerline-style shell prompt written in pure Bash

powerline-shell

Features

  • The path relative to the repository's top-level directory is displayed if the current working directory is a Git repository
  • The absolute path of the directory is displayed if the current working directory is not a Git repository
  • The start of the prompt is green if the exit code of the last command was 0
  • The start of the prompt is red if the exit code of the last command was a nonzero number

Git Status Indicators

  • : currently checked-out branch, tag, or short SHA-1 hash if the head is detached
  • : repository is clean
  • : repository is dirty
  • +n: there are n staged files
  • -n: there are n unstaged files
  • ?n: there are n untracked files
  • ¢n: there are n stashes
  • ⇡n: local is ahead of remote by n commits
  • ⇣n: local is behind remote by n commits

Installation

Download the Bash script:

$ curl https://raw.githubusercontent.com/bcmarinacci/powerline-shell/master/powerline-shell.bash > ~/.powerline-shell.bash

Then source it in your .bashrc (or .bash_profile):

$ printf ". ~/.powerline-shell.bash\n" >> ~/.bash_profile

Prior Art

https://github.com/magicmonty/bash-git-prompt
https://github.com/powerline/powerline
https://github.com/riobard/bash-powerline

Themes

https://github.com/arcticicestudio/nord-terminal-app
https://github.com/chriskempson/tomorrow-theme
https://github.com/robinbentley/oceanic-next-macos-terminal
https://github.com/voronianski/oceanic-next-color-scheme

About

A Powerline-style shell prompt written in pure Bash

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages