Giter VIP home page Giter VIP logo

custom-bash-powerline's Introduction

Custom Bash powerline theme (for Windows via git-bash and Linux)

Simple powerline theme for bash.

Made from scratch to learn how the bash prompt is assembled with ideas from other similar projects.

ScreenShot-Complete

ScreenShot-Compact

Install:

You can just download the theme.bash file and source it in your .bashrc file.

To make it easier clone the repository to a .folder in your HOME directory:

cd $HOME
mkdir -p .bash/themes/custom-bash-powerline
git clone https://github.com/hdamarcelo/custom-bash-powerline.git .bash/themes/custom-bash-powerline

then add the following to your .bashrc:

# Custom bash theme
THEME=$HOME/.bash/themes/custom-bash-powerline/theme.bash
if [ -f $THEME ]; then
   source $THEME
fi
unset THEME

Dependencies:

Currently it is not possible to disable the custom segments with developer oriented information (feel free to change this :) ). So you will also need to have these executables in your PATH:

    • java
    • docker
    • kubectl
  1. Depending on the linux distribution or git-bash installation it may be necessary to change the following line in the theme.bash file:

source /usr/share/git-core/contrib/completion/git-prompt.sh
# Change this line if the git-prompt.sh script is in another location
# Using itavoids reinventing the whell on how to get repository information
  1. You will also need a Powerline-patched font. Or else the custom characters won't show properly.

License:

MIT

custom-bash-powerline's People

Contributors

hdamarcelo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.